Dialog.OnMenuItemSelected(Int32, IMenuItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
int: The panel that the menu is in.
- item
- IMenuItem
MenuItem: This value cannot be null.
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).
Implements
- Attributes
Remarks
Called when a panel's menu item has been selected by the user.
See also:
Android reference for android.app.Dialog.onMenuItemSelected.
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.