Fragment.OnOptionsItemSelected(IMenuItem) Fragment.OnOptionsItemSelected(IMenuItem) Method

Definition

This hook is called whenever an item in your options menu is selected.

[Android.Runtime.Register("onOptionsItemSelected", "(Landroid/view/MenuItem;)Z", "GetOnOptionsItemSelected_Landroid_view_MenuItem_Handler")]
public virtual bool OnOptionsItemSelected (Android.Views.IMenuItem item);
abstract member OnOptionsItemSelected : Android.Views.IMenuItem -> bool
override this.OnOptionsItemSelected : Android.Views.IMenuItem -> bool

Parameters

item
IMenuItem IMenuItem

The menu item that was selected.

Returns

Remarks

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