Freigeben über


View.SetOnClickListener(View+IOnClickListener) Method

Definition

Register a callback to be invoked when this view is clicked.

[Android.Runtime.Register("setOnClickListener", "(Landroid/view/View$OnClickListener;)V", "GetSetOnClickListener_Landroid_view_View_OnClickListener_Handler")]
public virtual void SetOnClickListener (Android.Views.View.IOnClickListener? l);
[<Android.Runtime.Register("setOnClickListener", "(Landroid/view/View$OnClickListener;)V", "GetSetOnClickListener_Landroid_view_View_OnClickListener_Handler")>]
abstract member SetOnClickListener : Android.Views.View.IOnClickListener -> unit
override this.SetOnClickListener : Android.Views.View.IOnClickListener -> unit

Parameters

l
View.IOnClickListener

The callback that will run

Attributes

Remarks

Java documentation for android.view.View.setOnClickListener(android.view.OnClickListener).

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

See also