public
static
abstract
class
ObjectAdapter.DataObserver
extends Object
| java.lang.Object | |
| ↳ | android.support.v17.leanback.widget.ObjectAdapter.DataObserver |
A DataObserver can be notified when an ObjectAdapter's underlying data changes. Separate methods provide notifications about different types of changes.
Public constructors | |
|---|---|
ObjectAdapter.DataObserver()
|
|
Public methods | |
|---|---|
void
|
onChanged()
Called whenever the ObjectAdapter's data has changed in some manner outside of the set of changes covered by the other range-based change notification methods. |
void
|
onItemRangeChanged(int positionStart, int itemCount)
Called when a range of items in the ObjectAdapter has changed. |
void
|
onItemRangeInserted(int positionStart, int itemCount)
Called when a range of items is inserted into the ObjectAdapter. |
void
|
onItemRangeRemoved(int positionStart, int itemCount)
Called when a range of items is removed from the ObjectAdapter. |
Inherited methods | |
|---|---|
java.lang.Object
| |
ObjectAdapter.DataObserver ()
void onChanged ()
Called whenever the ObjectAdapter's data has changed in some manner outside of the set of changes covered by the other range-based change notification methods.
void onItemRangeChanged (int positionStart,
int itemCount)
Called when a range of items in the ObjectAdapter has changed. The basic ordering and structure of the ObjectAdapter has not changed.
| Parameters | |
|---|---|
positionStart |
int:
The position of the first item that changed. |
itemCount |
int:
The number of items changed.
|
void onItemRangeInserted (int positionStart,
int itemCount)
Called when a range of items is inserted into the ObjectAdapter.
| Parameters | |
|---|---|
positionStart |
int:
The position of the first inserted item. |
itemCount |
int:
The number of items inserted.
|
void onItemRangeRemoved (int positionStart,
int itemCount)
Called when a range of items is removed from the ObjectAdapter.
| Parameters | |
|---|---|
positionStart |
int:
The position of the first removed item. |
itemCount |
int:
The number of items removed.
|