KeyboardView.IOnKeyboardActionListener.OnPress(Keycode) 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.
Called when the user presses a key.
[Android.Runtime.Register("onPress", "(I)V", "GetOnPress_IHandler:Android.InputMethodServices.KeyboardView/IOnKeyboardActionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnPress (Android.Views.Keycode primaryCode);
[<Android.Runtime.Register("onPress", "(I)V", "GetOnPress_IHandler:Android.InputMethodServices.KeyboardView/IOnKeyboardActionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnPress : Android.Views.Keycode -> unit
Parameters
- primaryCode
- Keycode
the unicode of the key being pressed. If the touch is not on a valid key, the value will be zero.
- Attributes
Remarks
Called when the user presses a key. This is sent before the #onKey
is called. For keys that repeat, this is only called once.
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.