Android.App.Fragment.SetHasOptionsMenu Method
Report that this fragment would like to participate in populating the options menu by receiving a call to Fragment.OnCreateOptionsMenu(Android.Views.IMenu, Android.Views.MenuInflater) and related methods.

Syntax

[Android.Runtime.Register("setHasOptionsMenu", "(Z)V", "GetSetHasOptionsMenu_ZHandler")]
public virtual void SetHasOptionsMenu (bool hasMenu)

Parameters

hasMenu
If true, the fragment has menu items to contribute.

Remarks

Report that this fragment would like to participate in populating the options menu by receiving a call to Fragment.OnCreateOptionsMenu(Android.Views.IMenu, Android.Views.MenuInflater) and related methods.

[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