Android.App.Fragment.OnPrepareOptionsMenu Method
Prepare the Screen's standard options menu to be displayed.

Syntax

[Android.Runtime.Register("onPrepareOptionsMenu", "(Landroid/view/Menu;)V", "GetOnPrepareOptionsMenu_Landroid_view_Menu_Handler")]
public virtual void OnPrepareOptionsMenu (Android.Views.IMenu menu)

See Also

Fragment.SetHasOptionsMenu(bool)
Fragment.OnCreateOptionsMenu(Android.Views.IMenu, Android.Views.MenuInflater)

Parameters

menu
The options menu as last shown or first initialized by onCreateOptionsMenu().

Remarks

Prepare the Screen's standard options menu to be displayed. This is called right before the menu is shown, every time it is shown. You can use this method to efficiently enable/disable items or otherwise dynamically modify the contents. See Activity.OnPrepareOptionsMenu(Android.Views.IMenu) for more information.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11