FragmentController.DispatchContextItemSelected(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 a context item selection event to the Fragments managed by the controller's FragmentManager.
[Android.Runtime.Register("dispatchContextItemSelected", "(Landroid/view/MenuItem;)Z", "GetDispatchContextItemSelected_Landroid_view_MenuItem_Handler", ApiSince=23)]
public virtual bool DispatchContextItemSelected (Android.Views.IMenuItem? item);
[<Android.Runtime.Register("dispatchContextItemSelected", "(Landroid/view/MenuItem;)Z", "GetDispatchContextItemSelected_Landroid_view_MenuItem_Handler", ApiSince=23)>]
abstract member DispatchContextItemSelected : Android.Views.IMenuItem -> bool
override this.DispatchContextItemSelected : Android.Views.IMenuItem -> bool
Parameters
- item
- IMenuItem
Returns
true
if the context menu selection event was consumed
- Attributes
Remarks
Sends a context 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.