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

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