java.lang.Object |
↳ |
android.support.v17.leanback.widget.ObjectAdapter.DataObserver |
Class Overview
A DataObserver can be notified when an ObjectAdapter's underlying data
changes. Separate methods provide notifications about different types of
changes.
Summary
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.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Constructors
public
ObjectAdapter.DataObserver
()
Public Methods
public
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.
public
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
| The position of the first item that changed. |
itemCount
| The number of items changed.
|
public
void
onItemRangeInserted
(int positionStart, int itemCount)
Called when a range of items is inserted into the ObjectAdapter.
Parameters
positionStart
| The position of the first inserted item. |
itemCount
| The number of items inserted.
|
public
void
onItemRangeRemoved
(int positionStart, int itemCount)
Called when a range of items is removed from the ObjectAdapter.
Parameters
positionStart
| The position of the first removed item. |
itemCount
| The number of items removed.
|