ActionStrip.Builder

class ActionStrip.Builder


A builder of ActionStrip.

Summary

Public constructors

Creates an empty Builder instance.

Public functions

ActionStrip.Builder
addAction(action: Action)

Adds an Action to the list.

ActionStrip

Constructs the ActionStrip defined by this builder.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an empty Builder instance.

Public functions

addAction

Added in 1.0.0
fun addAction(action: Action): ActionStrip.Builder

Adds an Action to the list.

Spans are not supported in the title of the action and will be ignored.

Only the primary action for navigation and map templates will have the background color applied. Setting the background color has no effect in other templates.

Throws
java.lang.IllegalArgumentException

if action is a standard action and an action of the same type has already been added, of if the action's title contains unsupported spans.

java.lang.NullPointerException

if action is null

build

Added in 1.0.0
fun build(): ActionStrip

Constructs the ActionStrip defined by this builder.

Throws
java.lang.IllegalStateException

if the action strip is empty