IMenu IMenu Interface

Definition

Interface for managing the items in a menu.

[Android.Runtime.Register("android/view/Menu", "", "Android.Views.IMenuInvoker", ApiSince=1)]
public interface IMenu : Android.Runtime.IJavaObject, IDisposable
type IMenu = interface
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

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.

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
HasVisibleItems HasVisibleItems

Return whether the menu currently has item items that are visible.

Methods

Add(ICharSequence) Add(ICharSequence)

Add a new item to the menu.

Add(Int32) Add(Int32)

Add a new item to the menu.

Add(Int32, Int32, Int32, ICharSequence) Add(Int32, Int32, Int32, ICharSequence)

Add a new item to the menu.

Add(Int32, Int32, Int32, Int32) Add(Int32, Int32, Int32, Int32)

Android.Views.Menu.add(int,int,int,java.lang.CharSequence)

AddIntentOptions(Int32, Int32, Int32, ComponentName, Intent[], Intent, MenuAppendFlags, IMenuItem[]) AddIntentOptions(Int32, Int32, Int32, ComponentName, Intent[], Intent, MenuAppendFlags, IMenuItem[])

Add a group of menu items corresponding to actions that can be performed for a particular Intent.

AddSubMenu(ICharSequence) AddSubMenu(ICharSequence)

Add a new sub-menu to the menu.

AddSubMenu(Int32) AddSubMenu(Int32)

Add a new sub-menu to the menu.

AddSubMenu(Int32, Int32, Int32, ICharSequence) AddSubMenu(Int32, Int32, Int32, ICharSequence)

Add a new sub-menu to the menu.

AddSubMenu(Int32, Int32, Int32, Int32) AddSubMenu(Int32, Int32, Int32, Int32)

Android.Views.Menu.addSubMenu(int,int,int,java.lang.CharSequence)

Clear() Clear()

Remove all existing items from the menu, leaving it empty as if it had just been created.

Close() Close()

Closes the menu, if open.

FindItem(Int32) FindItem(Int32)

Return the menu item with a particular identifier.

GetItem(Int32) GetItem(Int32)

Gets the menu item at the given index.

IsShortcutKey(Keycode, KeyEvent) IsShortcutKey(Keycode, KeyEvent)

Is a keypress one of the defined shortcut keys for this window.

PerformIdentifierAction(Int32, MenuPerformFlags) PerformIdentifierAction(Int32, MenuPerformFlags)

Execute the menu item action associated with the given menu identifier.

PerformShortcut(Keycode, KeyEvent, MenuPerformFlags) PerformShortcut(Keycode, KeyEvent, MenuPerformFlags)

Execute the menu item action associated with the given shortcut character.

RemoveGroup(Int32) RemoveGroup(Int32)

Remove all items in the given group.

RemoveItem(Int32) RemoveItem(Int32)

Remove the item with the given identifier.

SetGroupCheckable(Int32, Boolean, Boolean) SetGroupCheckable(Int32, Boolean, Boolean)

Control whether a particular group of items can show a check mark.

SetGroupEnabled(Int32, Boolean) SetGroupEnabled(Int32, Boolean)

Enable or disable all menu items that are in the given group.

SetGroupVisible(Int32, Boolean) SetGroupVisible(Int32, Boolean)

Show or hide all menu items that are in the given group.

SetQwertyMode(Boolean) SetQwertyMode(Boolean)

Control whether the menu should be running in qwerty mode (alphabetic shortcuts) or 12-key mode (numeric shortcuts).

Size() Size()

Get the number of items in the menu.

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

Add(IMenu, Int32, Int32, Int32, String) Add(IMenu, Int32, Int32, Int32, String)
Add(IMenu, String) Add(IMenu, String)
AddSubMenu(IMenu, Int32, Int32, Int32, String) AddSubMenu(IMenu, Int32, Int32, Int32, String)
AddSubMenu(IMenu, String) AddSubMenu(IMenu, String)
JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Applies to