createStyle

abstract fun createStyle(state: LiveUpdateState): Notification.ProgressStyle

Builds the Notification.ProgressStyle for one rendered push. Invoked once per start / update on a worker thread; must be stateless (see the type-level documentation for the full threading and per-push contract).

Return

the progress style to apply; if this throws, the SDK falls back to the default style

Parameters

state

the parsed state of the push being rendered; the sole source of input