Presentations.Builder


public static final class Presentations.Builder
extends Object

java.lang.Object
   ↳ android.service.autofill.Presentations.Builder


A builder for Presentations

Summary

Public constructors

Builder()

Public methods

Presentations build()

Builds the instance.

Presentations.Builder setDialogPresentation(RemoteViews value)

The presentation used to visualize this field in the fill dialog UI.

Presentations.Builder setInlinePresentation(InlinePresentation value)

The InlinePresentation used to visualize this dataset as inline suggestions.

Presentations.Builder setInlineTooltipPresentation(InlinePresentation value)

The InlinePresentation used to show the tooltip for the mInlinePresentation.

Presentations.Builder setMenuPresentation(RemoteViews value)

The presentation used to visualize this field in fill UI.

Inherited methods

Public constructors

Builder

Added in API level 33
public Builder ()

Public methods

build

Added in API level 33
public Presentations build ()

Builds the instance. This builder should not be touched after calling this!

Returns
Presentations This value cannot be null.

setDialogPresentation

Added in API level 33
public Presentations.Builder setDialogPresentation (RemoteViews value)

The presentation used to visualize this field in the fill dialog UI.

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

Parameters
value RemoteViews: This value cannot be null.

Returns
Presentations.Builder This value cannot be null.

setInlinePresentation

Added in API level 33
public Presentations.Builder setInlinePresentation (InlinePresentation value)

The InlinePresentation used to visualize this dataset as inline suggestions. If the dataset supports inline suggestions, this should not be null.

Parameters
value InlinePresentation: This value cannot be null.

Returns
Presentations.Builder

setInlineTooltipPresentation

Added in API level 33
public Presentations.Builder setInlineTooltipPresentation (InlinePresentation value)

The InlinePresentation used to show the tooltip for the mInlinePresentation. If the set this field, the mInlinePresentation should not be null.

Parameters
value InlinePresentation: This value cannot be null.

Returns
Presentations.Builder

setMenuPresentation

Added in API level 33
public Presentations.Builder setMenuPresentation (RemoteViews value)

The presentation used to visualize this field in fill UI.

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

Parameters
value RemoteViews: This value cannot be null.

Returns
Presentations.Builder This value cannot be null.