Android.Views.View.OnKeyPreIme Method
Handle a key event before it is processed by any input method associated with the view hierarchy.

Syntax

[Android.Runtime.Register("onKeyPreIme", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyPreIme_ILandroid_view_KeyEvent_Handler")]
public virtual bool OnKeyPreIme ([Android.Runtime.GeneratedEnum] Keycode keyCode, KeyEvent e)

Parameters

keyCode
The value in event.getKeyCode().
e
Description of the key event.

Returns

Documentation for this section has not yet been entered.

Remarks

Handle a key event before it is processed by any input method associated with the view hierarchy. This can be used to intercept key events in special situations before the IME consumes them; a typical example would be handling the BACK key to update the application's UI instead of allowing the IME to see it and close itself.

[Android Documentation]

Requirements

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