View.SetOnKeyListener(View+IOnKeyListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.