@MainThread public class ChoiceModeObservable extends Observable<ChoiceModeObserver>
ChoiceModeObservable provides methods for registering, unregistering
and dispatching the selection of the item changes in the choice mode
to the registered ChoiceModeObservers.mObservers| Constructor and Description |
|---|
ChoiceModeObservable() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyAllItemsCheckedChanged(boolean fromUser)
Notifies the registered observers that the selection of the all items
in the choice mode have been changed.
|
void |
notifyItemCheckedChanged(long itemId,
boolean fromUser)
Notifies the registered observers that the selection of the item in the choice mode
have been changed.
|
hasObservers, registerObserver, unregisterAll, unregisterObserverpublic void notifyItemCheckedChanged(long itemId,
boolean fromUser)
itemId - The item's id or RecyclerView#NO_ID.fromUser - True if the checked state change was initiated by the user.public void notifyAllItemsCheckedChanged(boolean fromUser)
fromUser - True if the checked state change was initiated by the user.