Android APIs
public interface

ObservableList

implements List<T>
android.databinding.ObservableList<T>
Known Indirect Subclasses

Class Overview

A List that notifies when changes are made. An ObservableList bound to the UI will keep the it up-to-date when changes occur.

The ObservableList must notify its callbacks whenever a change to the list occurs, using ObservableList.OnListChangedCallback.

ObservableArrayList implements ObservableList with an underlying ArrayList. ListChangeRegistry can help in maintaining the callbacks of other implementations.

Summary

Nested Classes
class ObservableList.OnListChangedCallback<T extends ObservableList> The callback that is called by ObservableList when the list has changed. 
Public Methods
abstract void addOnListChangedCallback(OnListChangedCallback<? extends ObservableList<T>> callback)
Adds a callback to be notified when changes to the list occur.
abstract void removeOnListChangedCallback(OnListChangedCallback<? extends ObservableList<T>> callback)
Removes a callback previously added.
[Expand]
Inherited Methods
From interface java.util.List
From interface java.util.Collection
From interface java.lang.Iterable

Public Methods

public abstract void addOnListChangedCallback (OnListChangedCallback<? extends ObservableList<T>> callback)

Adds a callback to be notified when changes to the list occur.

Parameters
callback The callback to be notified on list changes

public abstract void removeOnListChangedCallback (OnListChangedCallback<? extends ObservableList<T>> callback)

Removes a callback previously added.

Parameters
callback The callback to remove.