Sdílet prostřednictvím


Dialog.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")]
public virtual bool OnMenuItemSelected (int featureId, Android.Views.IMenuItem item);
[<Android.Runtime.Register("onMenuItemSelected", "(ILandroid/view/MenuItem;)Z", "GetOnMenuItemSelected_ILandroid_view_MenuItem_Handler")>]
abstract member OnMenuItemSelected : int * Android.Views.IMenuItem -> bool
override this.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

Implements

Attributes

Remarks

Java documentation for android.app.Dialog.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

See also

  • <xref:Android.App.Activity.OnMenuItemSelected(System.Int32%2c+Android.Views.IMenuItem)>