Android.App.Activity.OnOptionsItemSelected Method
This hook is called whenever an item in your options menu is selected.

Syntax

[Android.Runtime.Register("onOptionsItemSelected", "(Landroid/view/MenuItem;)Z", "GetOnOptionsItemSelected_Landroid_view_MenuItem_Handler")]
public virtual bool OnOptionsItemSelected (Android.Views.IMenuItem item)

See Also

Activity.OnCreateOptionsMenu(Android.Views.IMenu)

Parameters

item
The menu item that was selected.

Returns

Documentation for this section has not yet been entered.

Remarks

This hook is called whenever an item in your options menu is selected. The default implementation simply returns false to have the normal processing happen (calling the item's Runnable or sending a message to its Handler as appropriate). You can use this method for any items for which you would like to do processing without those other facilities.

Derived classes should call through to the base class for it to perform the default menu handling.

[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