ActionMode.ICallback.OnCreateActionMode(ActionMode, IMenu) Method

Definition

Called when action mode is first created.

[Android.Runtime.Register("onCreateActionMode", "(Landroid/view/ActionMode;Landroid/view/Menu;)Z", "GetOnCreateActionMode_Landroid_view_ActionMode_Landroid_view_Menu_Handler:Android.Views.ActionMode/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnCreateActionMode (Android.Views.ActionMode mode, Android.Views.IMenu menu);
[<Android.Runtime.Register("onCreateActionMode", "(Landroid/view/ActionMode;Landroid/view/Menu;)Z", "GetOnCreateActionMode_Landroid_view_ActionMode_Landroid_view_Menu_Handler:Android.Views.ActionMode/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnCreateActionMode : Android.Views.ActionMode * Android.Views.IMenu -> bool

Parameters

mode
ActionMode

ActionMode being created

menu
IMenu

Menu used to populate action buttons

Returns

true if the action mode should be created, false if entering this mode should be aborted.

Attributes

Remarks

Called when action mode is first created. The menu supplied will be used to generate action buttons for the action mode.

Java documentation for android.view.ActionMode.Callback.onCreateActionMode(android.view.ActionMode, android.view.Menu).

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