Sdílet prostřednictvím


FragmentController.DispatchCreateOptionsMenu(IMenu, MenuInflater) Method

Definition

Lets all Fragments managed by the controller's FragmentManager know they should create an options menu.

[Android.Runtime.Register("dispatchCreateOptionsMenu", "(Landroid/view/Menu;Landroid/view/MenuInflater;)Z", "GetDispatchCreateOptionsMenu_Landroid_view_Menu_Landroid_view_MenuInflater_Handler", ApiSince=23)]
public virtual bool DispatchCreateOptionsMenu (Android.Views.IMenu? menu, Android.Views.MenuInflater? inflater);
[<Android.Runtime.Register("dispatchCreateOptionsMenu", "(Landroid/view/Menu;Landroid/view/MenuInflater;)Z", "GetDispatchCreateOptionsMenu_Landroid_view_Menu_Landroid_view_MenuInflater_Handler", ApiSince=23)>]
abstract member DispatchCreateOptionsMenu : Android.Views.IMenu * Android.Views.MenuInflater -> bool
override this.DispatchCreateOptionsMenu : Android.Views.IMenu * Android.Views.MenuInflater -> bool

Parameters

menu
IMenu
inflater
MenuInflater

Returns

true if the options menu contains items to display

Attributes

Remarks

Lets all Fragments managed by the controller's FragmentManager know they should create an options menu.

Call when the Fragment should create an options menu.

Java documentation for android.app.FragmentController.dispatchCreateOptionsMenu(android.view.Menu, android.view.MenuInflater).

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