public final class

ActionStrip.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.model.ActionStrip.Builder

Overview

A builder of ActionStrip.

Summary

Constructors
publicBuilder()

Creates an empty ActionStrip.Builder instance.

Methods
public ActionStrip.BuilderaddAction(Action action)

Adds an Action to the list.

public ActionStripbuild()

Constructs the ActionStrip defined by this builder.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates an empty ActionStrip.Builder instance.

Methods

public ActionStrip.Builder addAction(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.

public ActionStrip build()

Constructs the ActionStrip defined by this builder.