ActionStrip.Builder

public final class ActionStrip.Builder


A builder of ActionStrip.

Summary

Public constructors

Creates an empty Builder instance.

Public methods

@NonNull ActionStrip.Builder

Adds an Action to the list.

@NonNull ActionStrip

Constructs the ActionStrip defined by this builder.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an empty Builder instance.

Public methods

addAction

Added in 1.0.0
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 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
public @NonNull ActionStrip build()

Constructs the ActionStrip defined by this builder.

Throws
java.lang.IllegalStateException

if the action strip is empty