Share via


AbsListView.IMultiChoiceModeListener.OnItemCheckedStateChanged Method

Definition

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

[Android.Runtime.Register("onItemCheckedStateChanged", "(Landroid/view/ActionMode;IJZ)V", "GetOnItemCheckedStateChanged_Landroid_view_ActionMode_IJZHandler:Android.Widget.AbsListView/IMultiChoiceModeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnItemCheckedStateChanged (Android.Views.ActionMode? mode, int position, long id, bool checked);
[<Android.Runtime.Register("onItemCheckedStateChanged", "(Landroid/view/ActionMode;IJZ)V", "GetOnItemCheckedStateChanged_Landroid_view_ActionMode_IJZHandler:Android.Widget.AbsListView/IMultiChoiceModeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnItemCheckedStateChanged : Android.Views.ActionMode * int * int64 * bool -> unit

Parameters

mode
ActionMode

The ActionMode providing the selection mode

position
Int32

Adapter position of the item that was checked or unchecked

id
Int64

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.

Attributes

Remarks

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

Java documentation for android.widget.AbsListView.MultiChoiceModeListener.onItemCheckedStateChanged(android.view.ActionMode, int, long, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to