StylesBuilder
class StylesBuilder
kotlin.Any | |
↳ | 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(@NonNull style: UiVersions.Style) Adds a UI style. |
Bundle |
build() Returns the styles for one or more UI versions represented as a |
Public methods
addStyle
@NonNull fun addStyle(@NonNull style: UiVersions.Style): UiVersions.StylesBuilder
Adds a UI style.
Parameters | |
---|---|
style |
UiVersions.Style: the style being added |
Exceptions | |
---|---|
IllegalArgumentException |
if the style version is not supported by the library |