Dialog.OnCreateOptionsMenu(IMenu) Method

Definition

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

[Android.Runtime.Register("onCreateOptionsMenu", "(Landroid/view/Menu;)Z", "GetOnCreateOptionsMenu_Landroid_view_Menu_Handler")]
public virtual bool OnCreateOptionsMenu (Android.Views.IMenu menu);
[<Android.Runtime.Register("onCreateOptionsMenu", "(Landroid/view/Menu;)Z", "GetOnCreateOptionsMenu_Landroid_view_Menu_Handler")>]
abstract member OnCreateOptionsMenu : Android.Views.IMenu -> bool
override this.OnCreateOptionsMenu : Android.Views.IMenu -> bool

Parameters

menu
IMenu

Returns

Attributes

Remarks

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

Java documentation for android.app.Dialog.onCreateOptionsMenu(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.

Applies to

See also