Android Guides | Samples

Android.Views.View.IOnKeyListener

Interface definition for a callback to be invoked when a hardware key event is dispatched to this view.

See Also: View+IOnKeyListener

Syntax

[Android.Runtime.Register("android/view/View$OnKeyListener", "", "Android.Views.View/IOnKeyListenerInvoker")]
public interface View.IOnKeyListener : IJavaObject, IDisposable

Remarks

Interface definition for a callback to be invoked when a hardware key event is dispatched to this view. The callback will be invoked before the key event is given to the view. This is only useful for hardware keyboards; a software input method has no obligation to trigger this listener.

[Android Documentation]

Requirements

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

The members of Android.Views.View.IOnKeyListener are listed below.

Public Methods

OnKey(View, Keycode, KeyEvent) : Boolean
Called when a hardware key is dispatched to a view.