Share via


RemoteViews.SetOnClickResponse(Int32, RemoteViews+RemoteResponse) Method

Definition

Equivalent of calling android.view.View#setOnClickListener(android.view.View.OnClickListener) to launch the provided RemoteResponse.

[Android.Runtime.Register("setOnClickResponse", "(ILandroid/widget/RemoteViews$RemoteResponse;)V", "GetSetOnClickResponse_ILandroid_widget_RemoteViews_RemoteResponse_Handler", ApiSince=29)]
public virtual void SetOnClickResponse (int viewId, Android.Widget.RemoteViews.RemoteResponse response);
[<Android.Runtime.Register("setOnClickResponse", "(ILandroid/widget/RemoteViews$RemoteResponse;)V", "GetSetOnClickResponse_ILandroid_widget_RemoteViews_RemoteResponse_Handler", ApiSince=29)>]
abstract member SetOnClickResponse : int * Android.Widget.RemoteViews.RemoteResponse -> unit
override this.SetOnClickResponse : int * Android.Widget.RemoteViews.RemoteResponse -> unit

Parameters

viewId
Int32

The id of the view that will trigger the RemoteResponse when clicked

response
RemoteViews.RemoteResponse

The RemoteResponse to send when user clicks

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setOnClickResponse(int, android.widget.RemoteResponse).

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