Android Guides | Samples

Android.App.Dialog.OnMenuItemSelected Method

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

Syntax

[Android.Runtime.Register("onMenuItemSelected", "(ILandroid/view/MenuItem;)Z", "GetOnMenuItemSelected_ILandroid_view_MenuItem_Handler")]
public virtual Boolean OnMenuItemSelected (Int32 featureId, IMenuItem item)

See Also

Parameters

featureId
The panel that the menu is in.
item
The menu item that was selected.

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1