Sdílet prostřednictvím


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);
[<Android.Runtime.Register("setOnKeyListener", "(Landroid/view/View$OnKeyListener;)V", "GetSetOnKeyListener_Landroid_view_View_OnKeyListener_Handler")>]
abstract member SetOnKeyListener : Android.Views.View.IOnKeyListener -> unit
override this.SetOnKeyListener : Android.Views.View.IOnKeyListener -> unit

Parameters

l
View.IOnKeyListener

the key listener to attach to this view

Attributes

Remarks

Java documentation for android.view.View.setOnKeyListener(android.view.OnKeyListener).

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