UiVersions.StylesBuilder


class UiVersions.StylesBuilder


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

Summary

Public functions

UiVersions.StylesBuilder

Adds a UI style.

Bundle

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

Public functions

addStyle

Added in 1.1.0
fun addStyle(style: UiVersions.Style): UiVersions.StylesBuilder

Adds a UI style.

Parameters
style: UiVersions.Style

the style being added

Throws
java.lang.IllegalArgumentException

if the style version is not supported by the library

build

Added in 1.1.0
fun build(): Bundle

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

Throws
java.lang.IllegalStateException

if no style has been put in the builder