ViewGroup.StartActionModeForChild 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 |
|---|---|
| StartActionModeForChild(View, ActionMode+ICallback) |
Start an action mode for the specified view with the default type Primary. |
| StartActionModeForChild(View, ActionMode+ICallback, ActionModeType) |
Starts a contextual action mode for the specified child using the supplied callback and type. |
StartActionModeForChild(View, ActionMode+ICallback)
Start an action mode for the specified view with the default type Primary.
[Android.Runtime.Register("startActionModeForChild", "(Landroid/view/View;Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;", "GetStartActionModeForChild_Landroid_view_View_Landroid_view_ActionMode_Callback_Handler")]
public virtual Android.Views.ActionMode? StartActionModeForChild(Android.Views.View? originalView, Android.Views.ActionMode.ICallback? callback);
[<Android.Runtime.Register("startActionModeForChild", "(Landroid/view/View;Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;", "GetStartActionModeForChild_Landroid_view_View_Landroid_view_ActionMode_Callback_Handler")>]
abstract member StartActionModeForChild : Android.Views.View * Android.Views.ActionMode.ICallback -> Android.Views.ActionMode
override this.StartActionModeForChild : Android.Views.View * Android.Views.ActionMode.ICallback -> Android.Views.ActionMode
Parameters
- originalView
- View
The source view where the action mode was first invoked
- callback
- ActionMode.ICallback
The callback that will handle lifecycle events for the action mode
Returns
The new action mode if it was started, null otherwise
Implements
- Attributes
Remarks
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
StartActionModeForChild(View, ActionMode+ICallback, ActionModeType)
Starts a contextual action mode for the specified child using the supplied callback and type.
[Android.Runtime.Register("startActionModeForChild", "(Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;", "GetStartActionModeForChild_Landroid_view_View_Landroid_view_ActionMode_Callback_IHandler", ApiSince=23)]
public virtual Android.Views.ActionMode? StartActionModeForChild(Android.Views.View? originalView, Android.Views.ActionMode.ICallback? callback, Android.Views.ActionModeType type);
[<Android.Runtime.Register("startActionModeForChild", "(Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;", "GetStartActionModeForChild_Landroid_view_View_Landroid_view_ActionMode_Callback_IHandler", ApiSince=23)>]
abstract member StartActionModeForChild : Android.Views.View * Android.Views.ActionMode.ICallback * Android.Views.ActionModeType -> Android.Views.ActionMode
override this.StartActionModeForChild : Android.Views.View * Android.Views.ActionMode.ICallback * Android.Views.ActionModeType -> Android.Views.ActionMode
Parameters
- originalView
- View
The source view where the action mode was first invoked
- callback
- ActionMode.ICallback
The callback that will handle lifecycle events for the action mode
- type
- ActionModeType
Returns
The new action mode if it was started, null otherwise
Implements
- Attributes
Remarks
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.