Sdílet prostřednictvím


IMenu.PerformIdentifierAction(Int32, MenuPerformFlags) Method

Definition

Execute the menu item action associated with the given menu identifier.

[Android.Runtime.Register("performIdentifierAction", "(II)Z", "GetPerformIdentifierAction_IIHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool PerformIdentifierAction (int id, Android.Views.MenuPerformFlags flags);
[<Android.Runtime.Register("performIdentifierAction", "(II)Z", "GetPerformIdentifierAction_IIHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member PerformIdentifierAction : int * Android.Views.MenuPerformFlags -> bool

Parameters

id
Int32

Identifier associated with the menu item.

flags
MenuPerformFlags

Additional option flags or 0.

Returns

If the given identifier exists and is shown, returns true; else returns false.

Attributes

Remarks

Execute the menu item action associated with the given menu identifier.

Java documentation for android.view.Menu.performIdentifierAction(int, int).

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