Added in API level 11
MultiChoiceModeListener
interface MultiChoiceModeListener : ActionMode.Callback
android.widget.AbsListView.MultiChoiceModeListener |
A MultiChoiceModeListener receives events for AbsListView#CHOICE_MODE_MULTIPLE_MODAL
. It acts as the ActionMode.Callback
for the selection mode and also receives onItemCheckedStateChanged(android.view.ActionMode,int,long,boolean)
events when the user selects and deselects list items.
Summary
Public methods | |
---|---|
abstract Unit |
onItemCheckedStateChanged(mode: ActionMode!, position: Int, id: Long, checked: Boolean) Called when an item is checked or unchecked during selection mode. |
Inherited functions | |
---|---|
Public methods
onItemCheckedStateChanged
Added in API level 11
abstract fun onItemCheckedStateChanged(
mode: ActionMode!,
position: Int,
id: Long,
checked: Boolean
): Unit
Called when an item is checked or unchecked during selection mode.
Parameters | |
---|---|
mode |
ActionMode!: The ActionMode providing the selection mode |
position |
Int: Adapter position of the item that was checked or unchecked |
id |
Long: Adapter ID of the item that was checked or unchecked |
checked |
Boolean: true if the item is now checked, false if the item is now unchecked. |