ActionStrip


@CarProtocol
public final class 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 types

public final class ActionStrip.Builder

A builder of ActionStrip.

Public methods

boolean
@NonNull List<Action>

Returns the list of Actions in the strip.

@Nullable Action
getFirstActionOfType(int actionType)

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

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getActions

Added in 1.0.0
public @NonNull List<ActiongetActions()

Returns the list of Actions in the strip.

See also
addAction

getFirstActionOfType

Added in 1.0.0
public @Nullable Action getFirstActionOfType(int actionType)

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

hashCode

public int hashCode()

toString

public @NonNull String toString()