Aracılığıyla paylaş


KeyboardShortcutInfo Constructors

Definition

Overloads

KeyboardShortcutInfo(ICharSequence, Keycode, MetaKeyStates)
KeyboardShortcutInfo(ICharSequence, Char, MetaKeyStates)
KeyboardShortcutInfo(String, Keycode, MetaKeyStates)
KeyboardShortcutInfo(String, Char, MetaKeyStates)

KeyboardShortcutInfo(ICharSequence, Keycode, MetaKeyStates)

[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)

[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)

[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
keycode
Keycode
modifiers
MetaKeyStates
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)

[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
baseCharacter
Char
modifiers
MetaKeyStates
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