Language

FillResponse.Builder.SetFooter(RemoteViews) Method

Definition

Sets a footer to be shown as the last element in the list of datasets.

[Android.Runtime.Register("setFooter", "(Landroid/widget/RemoteViews;)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=28)]
public Android.Service.Autofill.FillResponse.Builder SetFooter(Android.Widget.RemoteViews footer);
[<Android.Runtime.Register("setFooter", "(Landroid/widget/RemoteViews;)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=28)>]
member this.SetFooter : Android.Widget.RemoteViews -> Android.Service.Autofill.FillResponse.Builder

Parameters

footer
RemoteViews

a presentation to represent the footer. This presentation is not clickable —calling RemoteViews.setOnClickPendingIntent(int,android.app.PendingIntent) on it would have no effect. This value cannot be null.

Returns

this builder. This value cannot be null.

Attributes

Remarks

Sets a footer to be shown as the last element in the list of datasets.

When this method is called, you must also add a dataset, otherwise build() throws an IllegalStateException. Similarly, this method should only be used on FillResponses that do not require authentication (as the footer could have been set directly in the main presentation in these cases).

Theme does not work with RemoteViews layout. Avoid hardcoded text color or background color: Autofill on different platforms may have different themes.

Android reference for android.service.autofill.FillResponse.Builder.setFooter.

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