Added in API level 33

Builder


class Builder
kotlin.Any
   ↳ android.service.autofill.Presentations.Builder

A builder for Presentations

Summary

Public constructors

Public methods
Presentations

Builds the instance.

Presentations.Builder

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

Presentations.Builder

The InlinePresentation used to visualize this dataset as inline suggestions.

Presentations.Builder

The InlinePresentation used to show the tooltip for the mInlinePresentation.

Presentations.Builder

The presentation used to visualize this field in fill UI.

Public constructors

Builder

Added in API level 33
Builder()

Public methods

build

Added in API level 33
fun build(): Presentations

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

Return
Presentations This value cannot be null.

setDialogPresentation

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

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.
Return
Presentations.Builder This value cannot be null.

setInlinePresentation

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

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.

setInlineTooltipPresentation

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

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.

setMenuPresentation

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

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.
Return
Presentations.Builder This value cannot be null.