Share via


IMenuItem.SetNumericShortcut Method

Definition

Overloads

SetNumericShortcut(Char)

Change the numeric shortcut associated with this item.

SetNumericShortcut(Char, Int32)

Change the numeric shortcut and modifiers associated with this item.

SetNumericShortcut(Char)

Change the numeric shortcut associated with this item.

[Android.Runtime.Register("setNumericShortcut", "(C)Landroid/view/MenuItem;", "GetSetNumericShortcut_CHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IMenuItem SetNumericShortcut (char numericChar);
[<Android.Runtime.Register("setNumericShortcut", "(C)Landroid/view/MenuItem;", "GetSetNumericShortcut_CHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetNumericShortcut : char -> Android.Views.IMenuItem

Parameters

numericChar
Char

The numeric shortcut key. This is the shortcut when using a 12-key (numeric) keyboard.

Returns

This Item so additional setters can be called.

Attributes

Remarks

Change the numeric shortcut associated with this item.

See Menu for the menu types that support shortcuts.

Java documentation for android.view.MenuItem.setNumericShortcut(char).

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

SetNumericShortcut(Char, Int32)

Change the numeric shortcut and modifiers associated with this item.

[Android.Runtime.Register("setNumericShortcut", "(CI)Landroid/view/MenuItem;", "GetSetNumericShortcut_CIHandler:Android.Views.IMenuItem, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual Android.Views.IMenuItem SetNumericShortcut (char numericChar, int numericModifiers);
[<Android.Runtime.Register("setNumericShortcut", "(CI)Landroid/view/MenuItem;", "GetSetNumericShortcut_CIHandler:Android.Views.IMenuItem, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member SetNumericShortcut : char * int -> Android.Views.IMenuItem
override this.SetNumericShortcut : char * int -> Android.Views.IMenuItem

Parameters

numericChar
Char

The numeric shortcut key. This is the shortcut when using a 12-key (numeric) keyboard.

numericModifiers
Int32

The modifier associated with the shortcut. It should be a combination of KeyEvent#META_META_ON, KeyEvent#META_CTRL_ON, KeyEvent#META_ALT_ON, KeyEvent#META_SHIFT_ON, KeyEvent#META_SYM_ON, KeyEvent#META_FUNCTION_ON.

Returns

This Item so additional setters can be called.

Attributes

Remarks

Change the numeric shortcut and modifiers associated with this item.

See Menu for the menu types that support shortcuts.

Java documentation for android.view.MenuItem.setNumericShortcut(char, int).

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