RemoteViews.RemoteResponse.FromFillInIntent(Intent) Method

Definition

When using collections (eg. ListView , StackView etc.) in widgets, it is very costly to set PendingIntents on the individual items, and is hence not recommended. Instead a single PendingIntent template can be set on the collection, see RemoteViews.setPendingIntentTemplate(int,PendingIntent) , and the individual on-click action of a given item can be distinguished by setting a fillInIntent on that item. The fillInIntent is then combined with the PendingIntent template in order to determine the final intent which will be executed when the item is clicked. This works as follows: any fields which are left blank in the PendingIntent template, but are provided by the fillInIntent will be overwritten, and the resulting PendingIntent will be used. The rest of the PendingIntent template will then be filled in with the associated fields that are set in fillInIntent. See Intent.fillIn(Intent,int) for more details. Creates a response which sends a pending intent as part of the response. The source bounds ( Intent.getSourceBounds() ) of the intent will be set to the bounds of the target view in screen space. Note that any activity options associated with the mPendingIntent may get overridden before starting the intent. See also:

[Android.Runtime.Register("fromFillInIntent", "(Landroid/content/Intent;)Landroid/widget/RemoteViews$RemoteResponse;", "", ApiSince=29)]
public static Android.Widget.RemoteViews.RemoteResponse FromFillInIntent(Android.Content.Intent fillIntent);
[<Android.Runtime.Register("fromFillInIntent", "(Landroid/content/Intent;)Landroid/widget/RemoteViews$RemoteResponse;", "", ApiSince=29)>]
static member FromFillInIntent : Android.Content.Intent -> Android.Widget.RemoteViews.RemoteResponse

Parameters

fillIntent
Intent

Intent : The intent which will be combined with the parent's PendingIntent in order to determine the behavior of the response. This value cannot be null .

Returns

This value cannot be null .

Attributes

Remarks

Java documentation for RemoteViews.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