FragmentController.DispatchPrepareOptionsMenu(IMenu) 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 prepare their options menu for display.
[Android.Runtime.Register("dispatchPrepareOptionsMenu", "(Landroid/view/Menu;)Z", "GetDispatchPrepareOptionsMenu_Landroid_view_Menu_Handler", ApiSince=23)]
public virtual bool DispatchPrepareOptionsMenu (Android.Views.IMenu? menu);
[<Android.Runtime.Register("dispatchPrepareOptionsMenu", "(Landroid/view/Menu;)Z", "GetDispatchPrepareOptionsMenu_Landroid_view_Menu_Handler", ApiSince=23)>]
abstract member DispatchPrepareOptionsMenu : Android.Views.IMenu -> bool
override this.DispatchPrepareOptionsMenu : Android.Views.IMenu -> bool
Parameters
- menu
- IMenu
Returns
true
if the options menu contains items to display
- Attributes
Remarks
Lets all Fragments managed by the controller's FragmentManager know they should prepare their options menu for display.
Call immediately before displaying the Fragment's options menu.
Java documentation for android.app.FragmentController.dispatchPrepareOptionsMenu(android.view.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.