Android.Widget.RemoteViews.SetOnClickPendingIntent Method
Equivalent to calling Android.Views.View.SetOnClickListener(.IOnClickListener) to launch the provided Android.App.PendingIntent.

Syntax

[Android.Runtime.Register("setOnClickPendingIntent", "(ILandroid/app/PendingIntent;)V", "GetSetOnClickPendingIntent_ILandroid_app_PendingIntent_Handler")]
public virtual void SetOnClickPendingIntent (int viewId, Android.App.PendingIntent pendingIntent)

Parameters

viewId
The id of the view that will trigger the Android.App.PendingIntent when clicked
pendingIntent
The Android.App.PendingIntent to send when user clicks

Remarks

Equivalent to calling Android.Views.View.SetOnClickListener(.IOnClickListener) to launch the provided Android.App.PendingIntent. When setting the on-click action of items within collections (eg. Android.Widget.ListView, Android.Widget.StackView etc.), this method will not work. Instead, use {@link RemoteViews#setPendingIntentTemplate(int, PendingIntent) in conjunction with RemoteViews#setOnClickFillInIntent(int, Intent).

[Android Documentation]

Requirements

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