Android Guides | Samples

Android.App.Dialog.OnWindowStartingActionMode Method

Called when an action mode is being started for this window.

Syntax

[Android.Runtime.Register("onWindowStartingActionMode", "(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;", "GetOnWindowStartingActionMode_Landroid_view_ActionMode_Callback_Handler")]
public virtual ActionMode OnWindowStartingActionMode (ActionMode+ICallback callback)

Parameters

callback
Callback to control the lifecycle of this action mode

Remarks

Called when an action mode is being started for this window. Gives the callback an opportunity to handle the action mode in its own unique and beautiful way. If this method returns null the system can choose a way to present the mode or choose not to start the mode at all. This is equivalent to NoType:android/view/Window$Callback;Href=../../../reference/android/view/Window.Callback.html#onWindowStartingActionMode(android.view.ActionMode.Callback, int) with type Android.Views.ActionMode.TYPE_PRIMARY.

[Android Documentation]

Requirements

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