Presentations


public final class Presentations
extends Object

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


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

See also:

Summary

Nested classes

class Presentations.Builder

A builder for Presentations 

Public methods

RemoteViews getDialogPresentation()

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

InlinePresentation getInlinePresentation()

The InlinePresentation used to visualize this dataset as inline suggestions.

InlinePresentation getInlineTooltipPresentation()

The InlinePresentation used to show the tooltip for the mInlinePresentation.

RemoteViews getMenuPresentation()

The presentation used to visualize this field in fill UI.

Inherited methods

Public methods

getDialogPresentation

Added in API level 33
public RemoteViews getDialogPresentation ()

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.

Returns
RemoteViews This value may be null.

getInlinePresentation

Added in API level 33
public InlinePresentation getInlinePresentation ()

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

Returns
InlinePresentation

getInlineTooltipPresentation

Added in API level 33
public InlinePresentation getInlineTooltipPresentation ()

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

Returns
InlinePresentation

getMenuPresentation

Added in API level 33
public RemoteViews getMenuPresentation ()

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.

Returns
RemoteViews This value may be null.