ActionStrip.Builder
class ActionStrip.Builder
A builder of ActionStrip.
Summary
Public functions |
|
|---|---|
ActionStrip.Builder |
Adds an |
ActionStrip |
build()Constructs the |
Public functions
addAction
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 |
java.lang.NullPointerException |
if |
build
fun build(): ActionStrip
Constructs the ActionStrip defined by this builder.
| Throws | |
|---|---|
java.lang.IllegalStateException |
if the action strip is empty |