FragmentController.DispatchCreateOptionsMenu(IMenu, MenuInflater) 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.
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.
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.