Android.Widget.RemoteViews.SetPendingIntentTemplate Method
When using collections (eg.

Syntax

[Android.Runtime.Register("setPendingIntentTemplate", "(ILandroid/app/PendingIntent;)V", "GetSetPendingIntentTemplate_ILandroid_app_PendingIntent_Handler")]
public virtual void SetPendingIntentTemplate (int viewId, Android.App.PendingIntent pendingIntentTemplate)

Parameters

viewId
The id of the collection who's children will use this PendingIntent template when clicked
pendingIntentTemplate
The Android.App.PendingIntent to be combined with extras specified by a child of viewId and executed when that child is clicked

Remarks

When using collections (eg. Android.Widget.ListView, Android.Widget.StackView etc.) in widgets, it is very costly to set PendingIntents on the individual items, and is hence not permitted. Instead this method should be used to set a single PendingIntent template on the collection, and individual items can differentiate their on-click behavior using RemoteViews.SetOnClickFillInIntent(int, Android.Content.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 11