Instrumentation.InvokeContextMenuAction 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.
Show the context menu for the currently focused view and executes a particular context menu item.
[Android.Runtime.Register("invokeContextMenuAction", "(Landroid/app/Activity;II)Z", "GetInvokeContextMenuAction_Landroid_app_Activity_IIHandler")]
public virtual bool InvokeContextMenuAction(Android.App.Activity? targetActivity, int id, Android.Views.MenuPerformFlags flag);
[<Android.Runtime.Register("invokeContextMenuAction", "(Landroid/app/Activity;II)Z", "GetInvokeContextMenuAction_Landroid_app_Activity_IIHandler")>]
abstract member InvokeContextMenuAction : Android.App.Activity * int * Android.Views.MenuPerformFlags -> bool
override this.InvokeContextMenuAction : Android.App.Activity * int * Android.Views.MenuPerformFlags -> bool
Parameters
- targetActivity
- Activity
Activity: The activity in question.
- id
- Int32
int: The identifier associated with the context menu item.
- flag
- MenuPerformFlags
int: Additional flags, if any.
Returns
Whether the invocation was successful (for example, it could be false if item is disabled).
- Attributes
Remarks
Show the context menu for the currently focused view and executes a particular context menu item.
Android reference for android.app.Instrumentation.invokeContextMenuAction.
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.