Android Guides | Samples

Android.Views.View.IOnClickListener.OnClick Method

Called when a view has been clicked.

Syntax

[Android.Runtime.Register("onClick", "(Landroid/view/View;)V", "GetOnClick_Landroid_view_View_Handler:Android.Views.View/IOnClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Void OnClick (View v)

Parameters

v
The view that was clicked.

Remarks

Called when a view has been clicked.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1