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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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.

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.

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.