RemoteViews.SetOnCheckedChangeResponse Method

Definition

Equivalent to calling android.widget.CompoundButton#setOnCheckedChangeListener( android.widget.CompoundButton.OnCheckedChangeListener) to launch the provided RemoteResponse.

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

Parameters

viewId
Int32

The id of the view that will trigger the PendingIntent when checked state changes.

response
RemoteViews.RemoteResponse

The RemoteResponse to send when the checked state changes.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setOnCheckedChangeResponse(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