# ActionStrip

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/model/ActionStrip.java+class:androidx.car.app.model.ActionStrip) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

*** ** * ** ***


```
@CarProtocol
public final class ActionStrip
```

<br />

*** ** * ** ***

Represents a list of `https://developer.android.com/reference/androidx/car/app/model/Action`s that are used for a template.

The `https://developer.android.com/reference/androidx/car/app/model/Action`s in the `https://developer.android.com/reference/androidx/car/app/model/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 `https://developer.android.com/reference/androidx/car/app/model/Template`s on restrictions around what actions are supported.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/car/app/model/ActionStrip.Builder` A builder of `https://developer.android.com/reference/androidx/car/app/model/ActionStrip`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/model/ActionStrip#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/car/app/model/Action>` | `https://developer.android.com/reference/androidx/car/app/model/ActionStrip#getActions()()` Returns the list of `https://developer.android.com/reference/androidx/car/app/model/Action`s in the strip. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/Action` | `https://developer.android.com/reference/androidx/car/app/model/ActionStrip#getFirstActionOfType(int)(int actionType)` Returns the first `https://developer.android.com/reference/androidx/car/app/model/Action` associated with the input `actionType` or ` null` if no matching `https://developer.android.com/reference/androidx/car/app/model/Action` is found. |
| `int` | `https://developer.android.com/reference/androidx/car/app/model/ActionStrip#hashCode()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/car/app/model/ActionStrip#toString()()` |

## Public methods

### equals

```
public boolean equals(@Nullable Object other)
```

### getActions

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

```
public @NonNull List<Action> getActions()
```

Returns the list of `https://developer.android.com/reference/androidx/car/app/model/Action`s in the strip.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/model/ActionStrip.Builder#addAction(androidx.car.app.model.Action)` |   |

### getFirstActionOfType

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

```
public @Nullable Action getFirstActionOfType(int actionType)
```

Returns the first `https://developer.android.com/reference/androidx/car/app/model/Action` associated with the input `actionType` or `
null` if no matching `https://developer.android.com/reference/androidx/car/app/model/Action` is found.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```