Android.Views.View.SetOnKeyListener Method
Register a callback to be invoked when a hardware key is pressed in this view.

Syntax

[Android.Runtime.Register("setOnKeyListener", "(Landroid/view/View$OnKeyListener;)V", "GetSetOnKeyListener_Landroid_view_View_OnKeyListener_Handler")]
public virtual void SetOnKeyListener (View.IOnKeyListener l)

Parameters

l
the key listener to attach to this view

Remarks

Register a callback to be invoked when a hardware key is pressed in this view. Key presses in software input methods will generally not trigger the methods of 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