View.SetOnClickListener(View+IOnClickListener) 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);
abstract member SetOnClickListener : Android.Views.View.IOnClickListener -> unit
override this.SetOnClickListener : Android.Views.View.IOnClickListener -> unit

Parameters

l
View.IOnClickListener View.IOnClickListener

The callback that will run

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

See also