Android.InputMethodServices.KeyboardView.IOnKeyboardActionListener.OnPress Method
Called when the user presses a key.

Syntax

[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.Runtime.GeneratedEnum] Android.Views.Keycode primaryCode)

Parameters

primaryCode
the unicode of the key being pressed. If the touch is not on a valid key, the value will be zero.

Remarks

Called when the user presses a key. This is sent before the Android.InputMethodServices.KeyboardView.IOnKeyboardActionListener.OnKey(Android.Views.Keycode, Android.Views.Keycode[]) is called. For keys that repeat, this is only called once.

[Android Documentation]

Requirements

Namespace: Android.InputMethodServices
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3