ActionStrip.Builder

public static class ActionStrip.Builder
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.model.ActionStrip.Builder


A builder of ActionStrip.

Summary

Public constructors

Builder()

Public methods

ActionStrip.Builder addAction(Action action)

Adds an Action to the list.

ActionStrip build()

Constructs the ActionStrip defined by this builder.

ActionStrip.Builder clearActions()

Clears any actions that may have been added with addAction(Action) up to this point.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

addAction

public ActionStrip.Builder addAction (Action action)

Adds an Action to the list.

Parameters
action Action

Returns
ActionStrip.Builder

Throws
IllegalArgumentException if action is a standard action and an action of the same type has already been added.
NullPointerException if action is null.

build

public ActionStrip build ()

Constructs the ActionStrip defined by this builder.

Returns
ActionStrip

Throws
IllegalStateException if the action strip is empty.

clearActions

public ActionStrip.Builder clearActions ()

Clears any actions that may have been added with addAction(Action) up to this point.

Returns
ActionStrip.Builder