MetaKeyKeyListener.GetMetaState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetMetaState(String, MetaStates, KeyEvent) |
Gets the state of a particular meta key to use with a particular key event. |
GetMetaState(String, KeyEvent) |
Gets the state of the meta keys for a specific key event. |
GetMetaState(String, MetaStates) |
Gets the state of a particular meta key. |
GetMetaState(ICharSequence, KeyEvent) |
Gets the state of the meta keys for a specific key event. |
GetMetaState(ICharSequence, MetaStates, KeyEvent) |
Gets the state of a particular meta key to use with a particular key event. |
GetMetaState(MetaKeyStates, MetaStates) |
Gets the state of the meta keys. |
GetMetaState(String) |
Gets the state of the meta keys. |
GetMetaState(ICharSequence) |
Gets the state of the meta keys. |
GetMetaState(MetaKeyStates) |
Gets the state of the meta keys. |
GetMetaState(ICharSequence, MetaStates) |
Gets the state of a particular meta key. |
GetMetaState(String, MetaStates, KeyEvent)
Gets the state of a particular meta key to use with a particular key event.
public static int GetMetaState (string? text, Android.Text.Method.MetaStates meta, Android.Views.KeyEvent? e);
static member GetMetaState : string * Android.Text.Method.MetaStates * Android.Views.KeyEvent -> int
Parameters
- text
- String
the buffer in which the meta key would have been pressed.
- meta
- MetaStates
META_SHIFT_ON, META_ALT_ON, META_SYM_ON
- e
- KeyEvent
Returns
0 if inactive, 1 if active, 2 if locked.
Remarks
Gets the state of a particular meta key to use with a particular key event.
If the key event has been created by a device that does not support toggled key modifiers, like a virtual keyboard for example, only the meta state in the key event is considered.
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
GetMetaState(String, KeyEvent)
Gets the state of the meta keys for a specific key event.
public static int GetMetaState (string? text, Android.Views.KeyEvent? e);
static member GetMetaState : string * Android.Views.KeyEvent -> int
Parameters
- text
- String
the buffer in which the meta key would have been pressed.
- e
- KeyEvent
Returns
an integer in which each bit set to one represents a pressed or locked meta key.
Remarks
Gets the state of the meta keys for a specific key event.
For input devices that use toggled key modifiers, the `toggled' state is stored into the text buffer. This method retrieves the meta state for this event, accounting for the stored state. If the event has been created by a device that does not support toggled key modifiers, like a virtual device for example, the stored state is ignored.
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
GetMetaState(String, MetaStates)
Gets the state of a particular meta key.
public static int GetMetaState (string? text, Android.Text.Method.MetaStates meta);
static member GetMetaState : string * Android.Text.Method.MetaStates -> int
Parameters
- text
- String
the buffer in which the meta key would have been pressed.
- meta
- MetaStates
META_SHIFT_ON, META_ALT_ON, META_SYM_ON
Returns
0 if inactive, 1 if active, 2 if locked.
Remarks
Gets the state of a particular meta key.
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
GetMetaState(ICharSequence, KeyEvent)
Gets the state of the meta keys for a specific key event.
[Android.Runtime.Register("getMetaState", "(Ljava/lang/CharSequence;Landroid/view/KeyEvent;)I", "")]
public static int GetMetaState (Java.Lang.ICharSequence? text, Android.Views.KeyEvent? e);
[<Android.Runtime.Register("getMetaState", "(Ljava/lang/CharSequence;Landroid/view/KeyEvent;)I", "")>]
static member GetMetaState : Java.Lang.ICharSequence * Android.Views.KeyEvent -> int
Parameters
- text
- ICharSequence
the buffer in which the meta key would have been pressed.
- e
- KeyEvent
the event for which to evaluate the meta state.
Returns
an integer in which each bit set to one represents a pressed or locked meta key.
- Attributes
Remarks
Gets the state of the meta keys for a specific key event.
For input devices that use toggled key modifiers, the `toggled' state is stored into the text buffer. This method retrieves the meta state for this event, accounting for the stored state. If the event has been created by a device that does not support toggled key modifiers, like a virtual device for example, the stored state is ignored.
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
GetMetaState(ICharSequence, MetaStates, KeyEvent)
Gets the state of a particular meta key to use with a particular key event.
[Android.Runtime.Register("getMetaState", "(Ljava/lang/CharSequence;ILandroid/view/KeyEvent;)I", "")]
public static int GetMetaState (Java.Lang.ICharSequence? text, Android.Text.Method.MetaStates meta, Android.Views.KeyEvent? e);
[<Android.Runtime.Register("getMetaState", "(Ljava/lang/CharSequence;ILandroid/view/KeyEvent;)I", "")>]
static member GetMetaState : Java.Lang.ICharSequence * Android.Text.Method.MetaStates * Android.Views.KeyEvent -> int
Parameters
- text
- ICharSequence
the buffer in which the meta key would have been pressed.
- meta
- MetaStates
META_SHIFT_ON, META_ALT_ON, META_SYM_ON
- e
- KeyEvent
the event for which to evaluate the meta state.
Returns
0 if inactive, 1 if active, 2 if locked.
- Attributes
Remarks
Gets the state of a particular meta key to use with a particular key event.
If the key event has been created by a device that does not support toggled key modifiers, like a virtual keyboard for example, only the meta state in the key event is considered.
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
GetMetaState(MetaKeyStates, MetaStates)
Gets the state of the meta keys.
[Android.Runtime.Register("getMetaState", "(II)I", "")]
public static int GetMetaState (Android.Views.MetaKeyStates state, Android.Text.Method.MetaStates meta);
[<Android.Runtime.Register("getMetaState", "(II)I", "")>]
static member GetMetaState : Android.Views.MetaKeyStates * Android.Text.Method.MetaStates -> int
Parameters
- state
- MetaKeyStates
the current meta state bits.
- meta
- MetaStates
Returns
an integer in which each bit set to one represents a pressed or locked meta key.
- Attributes
Remarks
Java documentation for android.text.method.MetaKeyKeyListener.getMetaState(long)
.
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
GetMetaState(String)
Gets the state of the meta keys.
public static int GetMetaState (string? text);
static member GetMetaState : string -> int
Parameters
- text
- String
the buffer in which the meta key would have been pressed.
Returns
an integer in which each bit set to one represents a pressed or locked meta key.
Remarks
Gets the state of the meta keys.
Java documentation for android.text.method.MetaKeyKeyListener.getMetaState(java.lang.CharSequence)
.
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
GetMetaState(ICharSequence)
Gets the state of the meta keys.
[Android.Runtime.Register("getMetaState", "(Ljava/lang/CharSequence;)I", "")]
public static int GetMetaState (Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("getMetaState", "(Ljava/lang/CharSequence;)I", "")>]
static member GetMetaState : Java.Lang.ICharSequence -> int
Parameters
- text
- ICharSequence
the buffer in which the meta key would have been pressed.
Returns
an integer in which each bit set to one represents a pressed or locked meta key.
- Attributes
Remarks
Gets the state of the meta keys.
Java documentation for android.text.method.MetaKeyKeyListener.getMetaState(java.lang.CharSequence)
.
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
GetMetaState(MetaKeyStates)
Gets the state of the meta keys.
[Android.Runtime.Register("getMetaState", "(I)I", "")]
public static int GetMetaState (Android.Views.MetaKeyStates state);
[<Android.Runtime.Register("getMetaState", "(I)I", "")>]
static member GetMetaState : Android.Views.MetaKeyStates -> int
Parameters
- state
- MetaKeyStates
the current meta state bits.
Returns
an integer in which each bit set to one represents a pressed or locked meta key.
- Attributes
Remarks
Java documentation for android.text.method.MetaKeyKeyListener.getMetaState(long)
.
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
GetMetaState(ICharSequence, MetaStates)
Gets the state of a particular meta key.
[Android.Runtime.Register("getMetaState", "(Ljava/lang/CharSequence;I)I", "")]
public static int GetMetaState (Java.Lang.ICharSequence? text, Android.Text.Method.MetaStates meta);
[<Android.Runtime.Register("getMetaState", "(Ljava/lang/CharSequence;I)I", "")>]
static member GetMetaState : Java.Lang.ICharSequence * Android.Text.Method.MetaStates -> int
Parameters
- text
- ICharSequence
the buffer in which the meta key would have been pressed.
- meta
- MetaStates
META_SHIFT_ON, META_ALT_ON, META_SYM_ON
Returns
0 if inactive, 1 if active, 2 if locked.
- Attributes
Remarks
Gets the state of a particular meta key.
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.