RemoteViews.SetOnClickResponse(Int32, RemoteViews+RemoteResponse) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.