Dialog.OnWindowStartingActionMode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| OnWindowStartingActionMode(ActionMode+ICallback) |
Called when an action mode is being started for this window. |
| OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType) |
Called when an action mode is being started for this window. |
OnWindowStartingActionMode(ActionMode+ICallback)
Called when an action mode is being started for this window.
[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: Callback to control the lifecycle of this action mode
Returns
The ActionMode that was started, or null if the system should present it
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. This is equivalent to onWindowStartingActionMode(android.view.ActionMode.Callback, int) with type ActionMode.TYPE_PRIMARY.
Android reference for android.app.Dialog.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
The ActionMode that was started, or null if the system should present it
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.Dialog.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.