Google is committed to advancing racial equity for Black communities. See how.

UiVersions.StylesBuilder

public static final class UiVersions.StylesBuilder
extends Object

java.lang.Object
   ↳ androidx.autofill.inline.UiVersions.StylesBuilder


A builder responsible for providing a Bundle with encoded UI style specifications for one or more versions of UI templates.

Summary

Public methods

UiVersions.StylesBuilder addStyle(UiVersions.Style style)

Adds a UI style.

Bundle build()

Returns the styles for one or more UI versions represented as a Bundle so it can be transported through IPC.

Inherited methods

Public methods

addStyle

public UiVersions.StylesBuilder addStyle (UiVersions.Style style)

Adds a UI style.

Parameters
style UiVersions.Style: the style being added

Returns
UiVersions.StylesBuilder

Throws
IllegalArgumentException if the style version is not supported by the library

build

public Bundle build ()

Returns the styles for one or more UI versions represented as a Bundle so it can be transported through IPC.

Returns
Bundle

Throws
IllegalStateException if no style has been put in the builder