ActionStrip

public final class ActionStrip
extends Object

java.lang.Object
   ↳ androidx.car.app.model.ActionStrip


Represents a list of Actions that are used for a template.

The Actions in the ActionStrip may be displayed differently depending on the template they are used with. For example, a map template may display them as a group of floating action buttons (FABs) over the map background.

See the documentation of individual Templates on restrictions around what actions are supported.

Summary

Nested classes

class ActionStrip.Builder

A builder of ActionStrip

Public methods

boolean equals(Object other)
List<Action> getActions()

Returns the list of Actions in the strip.

Action getFirstActionOfType(int actionType)

Returns the first Action associated with the input actionType or null if no matching Action is found.

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getActions

public List<Action> getActions ()

Returns the list of Actions in the strip.

Returns
List<Action>

getFirstActionOfType

public Action getFirstActionOfType (int actionType)

Returns the first Action associated with the input actionType or null if no matching Action is found.

Parameters
actionType int

Returns
Action

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String