FragmentController.DispatchOptionsItemSelected(IMenuItem) Method

Definition

Sends an option item selection event to the Fragments managed by the controller's FragmentManager.

[Android.Runtime.Register("dispatchOptionsItemSelected", "(Landroid/view/MenuItem;)Z", "GetDispatchOptionsItemSelected_Landroid_view_MenuItem_Handler", ApiSince=23)]
public virtual bool DispatchOptionsItemSelected (Android.Views.IMenuItem? item);
[<Android.Runtime.Register("dispatchOptionsItemSelected", "(Landroid/view/MenuItem;)Z", "GetDispatchOptionsItemSelected_Landroid_view_MenuItem_Handler", ApiSince=23)>]
abstract member DispatchOptionsItemSelected : Android.Views.IMenuItem -> bool
override this.DispatchOptionsItemSelected : Android.Views.IMenuItem -> bool

Parameters

item
IMenuItem

Returns

true if the options menu selection event was consumed

Attributes

Remarks

Sends an option item selection event to the Fragments managed by the controller's FragmentManager. Once the event has been consumed, no additional handling will be performed.

Call immediately after an options menu item has been selected

Java documentation for android.app.FragmentController.dispatchOptionsItemSelected(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