ActionStrip.Builder
public final class ActionStrip.Builder
A builder of ActionStrip.
Summary
Public methods |
|
|---|---|
@NonNull ActionStrip.Builder |
Adds an |
@NonNull ActionStrip |
build()Constructs the |
Public methods
addAction
public @NonNull ActionStrip.Builder addAction(@NonNull Action action)
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
public @NonNull ActionStrip build()
Constructs the ActionStrip defined by this builder.
| Throws | |
|---|---|
java.lang.IllegalStateException |
if the action strip is empty |