Udostępnij za pośrednictwem


FragmentController.DispatchContextItemSelected(IMenuItem) Method

Definition

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

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