SideboardBuilder

A helper class which is used to create a Sideboard.

You probably want to use this class via the sideboard function.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
inline suspend fun FlowCollector<Component>.emitLiteralText(baseText: String? = null, crossinline builder: LiteralTextBuilder.() -> Unit = {})

A utility function, allowing you to emit a Text to the flow, which is built by an easy to use literalText builder.

Link copied to clipboard
fun emptyLine()

Adds an empty line to the board.

Link copied to clipboard
inline fun line(block: () -> Component)

Adds a simple and static line of text. The block parameter can be used to add some additional logic.

fun line(flow: Flow<Component>)

Shortcut for adding a SideboardLine.Changing.

fun line(text: Component)

Adds a simple and static line of text.

fun line(line: SideboardLine)

Adds any line implementing the SideboardLine interface.

Link copied to clipboard
inline fun lineChanging(crossinline flowBuilder: suspend FlowCollector<Component>.() -> Unit)

Adds a line where the content is changing.

Link copied to clipboard
fun lineChangingPeriodically(period: Long, block: suspend () -> Component)

Adds a line where the content is changing / updating periodically.

Link copied to clipboard
inline fun literalLine(baseText: String? = null, crossinline builder: LiteralTextBuilder.() -> Unit = {})

Adds a simple and static line of text.

Link copied to clipboard
fun updatingLine(period: Duration, updater: suspend () -> Component)

Adds a line where the content is updated periodically.