IContextMenu IContextMenu Interface

Definition

Extension of Menu for context menus providing functionality to modify the header of the context menu.

[Android.Runtime.Register("android/view/ContextMenu", "", "Android.Views.IContextMenuInvoker", ApiSince=1)]
public interface IContextMenu : Android.Views.IMenu, IDisposable
type IContextMenu = interface
    interface IMenu
    interface IJavaObject
    interface IDisposable
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.

Methods

Add(ICharSequence) Add(ICharSequence)

Add a new item to the menu.

(Inherited from IMenu)
Add(Int32) Add(Int32)

Add a new item to the menu.

(Inherited from IMenu)
Add(Int32, Int32, Int32, ICharSequence) Add(Int32, Int32, Int32, ICharSequence)

Add a new item to the menu.

(Inherited from IMenu)
Add(Int32, Int32, Int32, Int32) Add(Int32, Int32, Int32, Int32)

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

(Inherited from IMenu)
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.

(Inherited from IMenu)
AddSubMenu(ICharSequence) AddSubMenu(ICharSequence)

Add a new sub-menu to the menu.

(Inherited from IMenu)
AddSubMenu(Int32) AddSubMenu(Int32)

Add a new sub-menu to the menu.

(Inherited from IMenu)
AddSubMenu(Int32, Int32, Int32, ICharSequence) AddSubMenu(Int32, Int32, Int32, ICharSequence)

Add a new sub-menu to the menu.

(Inherited from IMenu)
AddSubMenu(Int32, Int32, Int32, Int32) AddSubMenu(Int32, Int32, Int32, Int32)

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

(Inherited from IMenu)
Clear() Clear()

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

(Inherited from IMenu)
ClearHeader() ClearHeader()

Clears the header of the context menu.

Close() Close()

Closes the menu, if open.

(Inherited from IMenu)
FindItem(Int32) FindItem(Int32)

Return the menu item with a particular identifier.

(Inherited from IMenu)
GetItem(Int32) GetItem(Int32)

Gets the menu item at the given index.

(Inherited from IMenu)
IsShortcutKey(Keycode, KeyEvent) IsShortcutKey(Keycode, KeyEvent)

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

(Inherited from IMenu)
PerformIdentifierAction(Int32, MenuPerformFlags) PerformIdentifierAction(Int32, MenuPerformFlags)

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

(Inherited from IMenu)
PerformShortcut(Keycode, KeyEvent, MenuPerformFlags) PerformShortcut(Keycode, KeyEvent, MenuPerformFlags)

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

(Inherited from IMenu)
RemoveGroup(Int32) RemoveGroup(Int32)

Remove all items in the given group.

(Inherited from IMenu)
RemoveItem(Int32) RemoveItem(Int32)

Remove the item with the given identifier.

(Inherited from IMenu)
SetGroupCheckable(Int32, Boolean, Boolean) SetGroupCheckable(Int32, Boolean, Boolean)

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

(Inherited from IMenu)
SetGroupEnabled(Int32, Boolean) SetGroupEnabled(Int32, Boolean)

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

(Inherited from IMenu)
SetGroupVisible(Int32, Boolean) SetGroupVisible(Int32, Boolean)

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

(Inherited from IMenu)
SetHeaderIcon(Drawable) SetHeaderIcon(Drawable)

Sets the context menu header's icon to the icon given in iconDrawable.

SetHeaderIcon(Int32) SetHeaderIcon(Int32)

iconRes

SetHeaderTitle(ICharSequence) SetHeaderTitle(ICharSequence)

title

SetHeaderTitle(Int32) SetHeaderTitle(Int32)

titleRes

SetHeaderView(View) SetHeaderView(View)

Sets the header of the context menu to the View given in view.

SetQwertyMode(Boolean) SetQwertyMode(Boolean)

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

(Inherited from IMenu)
Size() Size()

Get the number of items in the menu.

(Inherited from IMenu)

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.

(Inherited from IMenu)

Extension Methods

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

Performs an Android runtime-checked type conversion.

SetHeaderTitle(IContextMenu, String) SetHeaderTitle(IContextMenu, String)
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