Added in API level 33

Presentations


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

Holds presentations used to visualize autofill suggestions for each available UI type.

Summary

Nested classes

A builder for Presentations

Public methods
RemoteViews?

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

InlinePresentation?

The InlinePresentation used to visualize this dataset as inline suggestions.

InlinePresentation?

The InlinePresentation used to show the tooltip for the mInlinePresentation.

RemoteViews?

The presentation used to visualize this field in fill UI.

Public methods

getDialogPresentation

Added in API level 33
fun getDialogPresentation(): RemoteViews?

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.

Return
RemoteViews? This value may be null.

getInlinePresentation

Added in API level 33
fun getInlinePresentation(): InlinePresentation?

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

getInlineTooltipPresentation

Added in API level 33
fun getInlineTooltipPresentation(): InlinePresentation?

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

getMenuPresentation

Added in API level 33
fun getMenuPresentation(): RemoteViews?

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.

Return
RemoteViews? This value may be null.