Window.ICallback.OnMenuOpened(Int32, IMenu) Method

Definition

Called when a panel's menu is opened by the user.

[Android.Runtime.Register("onMenuOpened", "(ILandroid/view/Menu;)Z", "GetOnMenuOpened_ILandroid_view_Menu_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnMenuOpened (int featureId, Android.Views.IMenu menu);
[<Android.Runtime.Register("onMenuOpened", "(ILandroid/view/Menu;)Z", "GetOnMenuOpened_ILandroid_view_Menu_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnMenuOpened : int * Android.Views.IMenu -> bool

Parameters

featureId
Int32

The panel that the menu is in.

menu
IMenu

The menu that is opened.

Returns

Return true to allow the menu to open, or false to prevent the menu from opening.

Attributes

Remarks

Called when a panel's menu is opened by the user. This may also be called when the menu is changing from one type to another (for example, from the icon menu to the expanded menu).

Java documentation for android.view.Window.Callback.onMenuOpened(int, android.view.Menu).

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