Udostępnij za pośrednictwem


Window.ICallback.OnMenuItemSelected(Int32, IMenuItem) Method

Definition

Called when a panel's menu item has been selected by the user.

[Android.Runtime.Register("onMenuItemSelected", "(ILandroid/view/MenuItem;)Z", "GetOnMenuItemSelected_ILandroid_view_MenuItem_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnMenuItemSelected (int featureId, Android.Views.IMenuItem item);
[<Android.Runtime.Register("onMenuItemSelected", "(ILandroid/view/MenuItem;)Z", "GetOnMenuItemSelected_ILandroid_view_MenuItem_Handler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnMenuItemSelected : int * Android.Views.IMenuItem -> bool

Parameters

featureId
Int32

The panel that the menu is in.

item
IMenuItem

The menu item that was selected.

Returns

boolean Return true to finish processing of selection, or false to perform the normal menu handling (calling its Runnable or sending a Message to its target Handler).

Attributes

Remarks

Called when a panel's menu item has been selected by the user.

Java documentation for android.view.Window.Callback.onMenuItemSelected(int, android.view.MenuItem).

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