to top
Android APIs
public static interface

AbsListView.MultiChoiceModeListener

implements ActionMode.Callback
android.widget.AbsListView.MultiChoiceModeListener

Class Overview

A MultiChoiceModeListener receives events for 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.

Summary

Public Methods
abstract void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked)
Called when an item is checked or unchecked during selection mode.
[Expand]
Inherited Methods
From interface android.view.ActionMode.Callback

Public Methods

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

Added in API level 11

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.