Activity.OnWindowStartingActionMode Method

Definition

Overloads

Name Description
OnWindowStartingActionMode(ActionMode+ICallback)

Give the Activity a chance to control the UI for an action mode requested by the system.

OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType)

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

OnWindowStartingActionMode(ActionMode+ICallback)

Give the Activity a chance to control the UI for an action mode requested by the system.

[Android.Runtime.Register("onWindowStartingActionMode", "(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;", "GetOnWindowStartingActionMode_Landroid_view_ActionMode_Callback_Handler")]
public virtual Android.Views.ActionMode? OnWindowStartingActionMode(Android.Views.ActionMode.ICallback? callback);
[<Android.Runtime.Register("onWindowStartingActionMode", "(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;", "GetOnWindowStartingActionMode_Landroid_view_ActionMode_Callback_Handler")>]
abstract member OnWindowStartingActionMode : Android.Views.ActionMode.ICallback -> Android.Views.ActionMode
override this.OnWindowStartingActionMode : Android.Views.ActionMode.ICallback -> Android.Views.ActionMode

Parameters

callback
ActionMode.ICallback

ActionMode.Callback: The callback that should control the new action mode

Returns

The new action mode, or null if the activity does not want to provide special handling for this action mode. (It will be handled by the system.)

Implements

Attributes

Remarks

Give the Activity a chance to control the UI for an action mode requested by the system. Note: If you are looking for a notification callback that an action mode has been started for this activity, see onActionModeStarted(ActionMode).

Android reference for android.app.Activity.onWindowStartingActionMode.

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

OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType)

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

[Android.Runtime.Register("onWindowStartingActionMode", "(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;", "GetOnWindowStartingActionMode_Landroid_view_ActionMode_Callback_IHandler", ApiSince=23)]
public virtual Android.Views.ActionMode? OnWindowStartingActionMode(Android.Views.ActionMode.ICallback? callback, Android.Views.ActionModeType type);
[<Android.Runtime.Register("onWindowStartingActionMode", "(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;", "GetOnWindowStartingActionMode_Landroid_view_ActionMode_Callback_IHandler", ApiSince=23)>]
abstract member OnWindowStartingActionMode : Android.Views.ActionMode.ICallback * Android.Views.ActionModeType -> Android.Views.ActionMode
override this.OnWindowStartingActionMode : Android.Views.ActionMode.ICallback * Android.Views.ActionModeType -> Android.Views.ActionMode

Parameters

callback
ActionMode.ICallback

ActionMode.Callback: Callback to control the lifecycle of this action mode

type
ActionModeType

int: One of ActionMode.TYPE_PRIMARY or ActionMode.TYPE_FLOATING.

Returns

This value may be null.

Implements

Attributes

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.

Android reference for android.app.Activity.onWindowStartingActionMode.

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