View.SetOnKeyListener(View+IOnKeyListener) View.SetOnKeyListener(View+IOnKeyListener) Method

Definition

Register a callback to be invoked when a hardware key is pressed in this view.

[Android.Runtime.Register("setOnKeyListener", "(Landroid/view/View$OnKeyListener;)V", "GetSetOnKeyListener_Landroid_view_View_OnKeyListener_Handler")]
public virtual void SetOnKeyListener (Android.Views.View.IOnKeyListener l);
abstract member SetOnKeyListener : Android.Views.View.IOnKeyListener -> unit
override this.SetOnKeyListener : Android.Views.View.IOnKeyListener -> unit

Parameters

l
View.IOnKeyListener View.IOnKeyListener

the key listener to attach to this view

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