Android Guides | Samples

Android.App.Dialog.OnCreateOptionsMenu Method

It is usually safe to proxy this call to the owner activity's Activity.OnCreateOptionsMenu(IMenu) if the client desires the same menu for this Dialog.

Syntax

[Android.Runtime.Register("onCreateOptionsMenu", "(Landroid/view/Menu;)Z", "GetOnCreateOptionsMenu_Landroid_view_Menu_Handler")]
public virtual Boolean OnCreateOptionsMenu (IMenu menu)

See Also

Parameters

menu

Remarks

It is usually safe to proxy this call to the owner activity's Activity.OnCreateOptionsMenu(IMenu) if the client desires the same menu for this Dialog.

[Android Documentation]

Requirements

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