Language

KeyboardShortcutInfo Constructors

Definition

Overloads

Name Description
KeyboardShortcutInfo(ICharSequence, Keycode, MetaKeyStates)

Creates a keyboard shortcut item with a label, key, and modifier state.

KeyboardShortcutInfo(ICharSequence, Char, MetaKeyStates)

Creates a keyboard shortcut item with a label, key, and modifier state.

KeyboardShortcutInfo(String, Keycode, MetaKeyStates)

Creates a keyboard shortcut item with a label, key, and modifier state.

KeyboardShortcutInfo(String, Char, MetaKeyStates)

Creates a keyboard shortcut item with a label, key, and modifier state.

KeyboardShortcutInfo(ICharSequence, Keycode, MetaKeyStates)

Creates a keyboard shortcut item with a label, key, and modifier state.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;II)V", "", ApiSince=24)]
public KeyboardShortcutInfo(Java.Lang.ICharSequence? label, Android.Views.Keycode keycode, Android.Views.MetaKeyStates modifiers);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;II)V", "", ApiSince=24)>]
new Android.Views.KeyboardShortcutInfo : Java.Lang.ICharSequence * Android.Views.Keycode * Android.Views.MetaKeyStates -> Android.Views.KeyboardShortcutInfo

Parameters

label
ICharSequence

The label that identifies the action performed by this shortcut.

keycode
Keycode

The keycode that triggers the shortcut. This should be a valid constant defined in KeyEvent.

modifiers
MetaKeyStates

The set of modifiers that, combined with the key, trigger the shortcut. These should be a combination of KeyEvent#META_CTRL_ON, KeyEvent#META_SHIFT_ON, KeyEvent#META_META_ON, KeyEvent#META_ALT_ON, KeyEvent#META_FUNCTION_ON and KeyEvent#META_SYM_ON.

Attributes

Remarks

Java documentation for android.view.KeyboardShortcutInfo.KeyboardShortcutInfo(java.lang.CharSequence, int, 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

KeyboardShortcutInfo(ICharSequence, Char, MetaKeyStates)

Creates a keyboard shortcut item with a label, key, and modifier state.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;CI)V", "", ApiSince=24)]
public KeyboardShortcutInfo(Java.Lang.ICharSequence? label, char baseCharacter, Android.Views.MetaKeyStates modifiers);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;CI)V", "", ApiSince=24)>]
new Android.Views.KeyboardShortcutInfo : Java.Lang.ICharSequence * char * Android.Views.MetaKeyStates -> Android.Views.KeyboardShortcutInfo

Parameters

label
ICharSequence

The label that identifies the action performed by this shortcut.

baseCharacter
Char

The character that triggers the shortcut.

modifiers
MetaKeyStates

The set of modifiers that, combined with the key, trigger the shortcut. These should be a combination of KeyEvent#META_CTRL_ON, KeyEvent#META_SHIFT_ON, KeyEvent#META_META_ON, KeyEvent#META_ALT_ON, KeyEvent#META_FUNCTION_ON and KeyEvent#META_SYM_ON.

Attributes

Remarks

Java documentation for android.view.KeyboardShortcutInfo.KeyboardShortcutInfo(java.lang.CharSequence, 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

KeyboardShortcutInfo(String, Keycode, MetaKeyStates)

Creates a keyboard shortcut item with a label, key, and modifier state.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;II)V", "", ApiSince=24)]
public KeyboardShortcutInfo(string? label, Android.Views.Keycode keycode, Android.Views.MetaKeyStates modifiers);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;II)V", "", ApiSince=24)>]
new Android.Views.KeyboardShortcutInfo : string * Android.Views.Keycode * Android.Views.MetaKeyStates -> Android.Views.KeyboardShortcutInfo

Parameters

label
String

The System.String value used for label.

keycode
Keycode

The Android.Views.Keycode value used for keycode.

modifiers
MetaKeyStates

The Android.Views.MetaKeyStates value used for modifiers.

Attributes

Remarks

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

KeyboardShortcutInfo(String, Char, MetaKeyStates)

Creates a keyboard shortcut item with a label, key, and modifier state.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;CI)V", "", ApiSince=24)]
public KeyboardShortcutInfo(string? label, char baseCharacter, Android.Views.MetaKeyStates modifiers);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;CI)V", "", ApiSince=24)>]
new Android.Views.KeyboardShortcutInfo : string * char * Android.Views.MetaKeyStates -> Android.Views.KeyboardShortcutInfo

Parameters

label
String

The System.String value used for label.

baseCharacter
Char

The System.Char value used for base character.

modifiers
MetaKeyStates

The Android.Views.MetaKeyStates value used for modifiers.

Attributes

Remarks

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