Interface AbsListView.MultiChoiceModeListener

All Superinterfaces:
ActionMode.Callback
Enclosing class:
AbsListView

public static interface AbsListView.MultiChoiceModeListener extends ActionMode.Callback
A MultiChoiceModeListener receives events for AbsListView.CHOICE_MODE_MULTIPLE_MODAL. It acts as the ActionMode.Callback for the selection mode and also receives onItemCheckedStateChanged(ActionMode, int, long, boolean) events when the user selects and deselects list items.
  • Method Details

    • onItemCheckedStateChanged

      void onItemCheckedStateChanged(@NonNull ActionMode mode, int position, long id, boolean checked)
      Called when an item is checked or unchecked during selection mode.
      Parameters:
      mode - The ActionMode providing the selection mode
      position - Adapter position of the item that was checked or unchecked
      id - Adapter ID of the item that was checked or unchecked
      checked - true if the item is now checked, false if the item is now unchecked.