# AbsListView.MultiChoiceModeListener

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary: [Methods](https://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener#inhmethods)  

# AbsListView.MultiChoiceModeListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/widget/AbsListView.MultiChoiceModeListener "View this page in Kotlin") \|Java


`
public
static


interface
AbsListView.MultiChoiceModeListener
`


`


implements

`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback)`


`

|----------------------------------------------------|
| android.widget.AbsListView.MultiChoiceModeListener |

<br />

*** ** * ** ***

A MultiChoiceModeListener receives events for [AbsListView.CHOICE_MODE_MULTIPLE_MODAL](https://developer.android.com/reference/android/widget/AbsListView#CHOICE_MODE_MULTIPLE_MODAL).
It acts as the [ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback) for the selection mode and also receives
[onItemCheckedStateChanged(android.view.ActionMode, int, long, boolean)](https://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener#onItemCheckedStateChanged(android.view.ActionMode,%20int,%20long,%20boolean)) events when the user
selects and deselects list items.

## Summary

|                                                                                                                                                                                                      ### Public methods                                                                                                                                                                                                       ||
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onItemCheckedStateChanged](https://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener#onItemCheckedStateChanged(android.view.ActionMode,%20int,%20long,%20boolean))`(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode)` mode, int position, long id, boolean checked) ` Called when an item is checked or unchecked during selection mode. |

| ### Inherited methods |
|-----------------------|---|
| From interface ` `[android.view.ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback)` ` |---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract boolean` | ` `[onActionItemClicked](https://developer.android.com/reference/android/view/ActionMode.Callback#onActionItemClicked(android.view.ActionMode,%20android.view.MenuItem))`(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode)` mode, `[MenuItem](https://developer.android.com/reference/android/view/MenuItem)` item) ` Called to report a user click on an action button.             | | ` abstract boolean` | ` `[onCreateActionMode](https://developer.android.com/reference/android/view/ActionMode.Callback#onCreateActionMode(android.view.ActionMode,%20android.view.Menu))`(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode)` mode, `[Menu](https://developer.android.com/reference/android/view/Menu)` menu) ` Called when action mode is first created.                                    | | ` abstract void`    | ` `[onDestroyActionMode](https://developer.android.com/reference/android/view/ActionMode.Callback#onDestroyActionMode(android.view.ActionMode))`(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode)` mode) ` Called when an action mode is about to be exited and destroyed.                                                                                                           | | ` abstract boolean` | ` `[onPrepareActionMode](https://developer.android.com/reference/android/view/ActionMode.Callback#onPrepareActionMode(android.view.ActionMode,%20android.view.Menu))`(`[ActionMode](https://developer.android.com/reference/android/view/ActionMode)` mode, `[Menu](https://developer.android.com/reference/android/view/Menu)` menu) ` Called to refresh an action mode's action menu whenever it is invalidated. | ||

## Public methods

### onItemCheckedStateChanged

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void onItemCheckedStateChanged (ActionMode mode, 
                int position, 
                long id, 
                boolean checked)
```

Called when an item is checked or unchecked during selection mode.

<br />

|                                                                   Parameters                                                                    ||
|------------|-------------------------------------------------------------------------------------------------------------------------------------|
| `mode`     | `ActionMode`: The [ActionMode](https://developer.android.com/reference/android/view/ActionMode) providing the selection mode <br /> |
| `position` | `int`: Adapter position of the item that was checked or unchecked <br />                                                            |
| `id`       | `long`: Adapter ID of the item that was checked or unchecked <br />                                                                 |
| `checked`  | `boolean`: `true` if the item is now checked, `false` if the item is now unchecked. <br />                                          |