IInputConnection.ClearMetaKeyStates(MetaKeyStates) 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.
Clear the given meta key pressed states in the given input connection.
[Android.Runtime.Register("clearMetaKeyStates", "(I)Z", "GetClearMetaKeyStates_IHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool ClearMetaKeyStates (Android.Views.MetaKeyStates states);
[<Android.Runtime.Register("clearMetaKeyStates", "(I)Z", "GetClearMetaKeyStates_IHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ClearMetaKeyStates : Android.Views.MetaKeyStates -> bool
Parameters
- states
- MetaKeyStates
The states to be cleared, may be one or more bits as
per KeyEvent#getMetaState() KeyEvent.getMetaState()
.
Returns
true on success, false if the input connection is no longer valid.
- Attributes
Remarks
Clear the given meta key pressed states in the given input connection.
This can be used by the IME to clear the meta key states set by a hardware keyboard with latched meta keys, if the editor keeps track of these.
Java documentation for android.view.inputmethod.InputConnection.clearMetaKeyStates(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.