Android Guides | Samples

Android.Views.ActionMode.ICallback

Callback interface for action modes.

See Also: ActionMode+ICallback

Syntax

[Android.Runtime.Register("android/view/ActionMode$Callback", "", "Android.Views.ActionMode/ICallbackInvoker")]
public interface ActionMode.ICallback : IJavaObject, IDisposable

Remarks

Callback interface for action modes. Supplied to View.StartActionMode(ActionMode+ICallback), a Callback configures and handles events raised by a user's interaction with an action mode.

An action mode's lifecycle is as follows:

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11

The members of Android.Views.ActionMode.ICallback are listed below.

Public Methods

OnActionItemClicked(ActionMode, IMenuItem) : Boolean
Called to report a user click on an action button.
OnCreateActionMode(ActionMode, IMenu) : Boolean
Called when action mode is first created.
OnDestroyActionMode(ActionMode)
Called when an action mode is about to be exited and destroyed.
OnPrepareActionMode(ActionMode, IMenu) : Boolean
Called to refresh an action mode's action menu whenever it is invalidated.