Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

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