Share via


KeyboardView.IOnKeyboardActionListener.OnPress(Keycode) Method

Definition

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.

Java documentation for android.inputmethodservice.KeyboardView.OnKeyboardActionListener.onPress(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