FragmentController.DispatchOptionsItemSelected(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.
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
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.