public interface ModalChoiceModeListener
ActionMode.Callback for the selection mode and also receives
onItemCheckedStateChanged(ActionMode, long, boolean, boolean) events when the user
selects and deselects list items.| Modifier and Type | Method and Description |
|---|---|
void |
onItemCheckedStateChanged(ActionMode mode,
long itemId,
boolean checked,
boolean fromUser)
Called when an item is checked or unchecked during selection mode.
|
void onItemCheckedStateChanged(@NonNull ActionMode mode, long itemId, boolean checked, boolean fromUser)
mode - The ActionMode providing the selection mode.itemId - The item id that was checked or unchecked.checked - true if the item is now checked, false
if the item is now unchecked.fromUser - true if the checked state change was initiated by the user.