RemoteViews.SetOnClickPendingIntent(Int32, PendingIntent) Method

Definition

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

[Android.Runtime.Register("setOnClickPendingIntent", "(ILandroid/app/PendingIntent;)V", "GetSetOnClickPendingIntent_ILandroid_app_PendingIntent_Handler")]
public virtual void SetOnClickPendingIntent (int viewId, Android.App.PendingIntent? pendingIntent);
[<Android.Runtime.Register("setOnClickPendingIntent", "(ILandroid/app/PendingIntent;)V", "GetSetOnClickPendingIntent_ILandroid_app_PendingIntent_Handler")>]
abstract member SetOnClickPendingIntent : int * Android.App.PendingIntent -> unit
override this.SetOnClickPendingIntent : int * Android.App.PendingIntent -> unit

Parameters

viewId
Int32

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

pendingIntent
PendingIntent

The PendingIntent to send when user clicks

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setOnClickPendingIntent(int, android.app.PendingIntent).

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