# ActionStrip

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/model/ActionStrip "View this page in Java")

<br />

```
@CarProtocol
class ActionStrip
```

<br />

*** ** * ** ***

Represents a list of[Action](https://developer.android.com/reference/kotlin/androidx/car/app/model/Action)s that are used for a template.

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

## Summary

|                                                                                                            ### Nested types                                                                                                            |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[ActionStrip.Builder](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip.Builder) A builder of[ActionStrip](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip). |

|                                                                                                                                       ### Public functions                                                                                                                                       |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                              | [equals](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                                                                                                                                                                                                                                       |
| `(`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Action](https://developer.android.com/reference/kotlin/androidx/car/app/model/Action)`!>` | [getActions](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip#getActions())`()` Returns the list of[Action](https://developer.android.com/reference/kotlin/androidx/car/app/model/Action)s in the strip.                                                                                                                                                                                                                                                           |
| [Action](https://developer.android.com/reference/kotlin/androidx/car/app/model/Action)`?`                                                                                                                                                                                                        | [getFirstActionOfType](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip#getFirstActionOfType(int))`(actionType: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the first[Action](https://developer.android.com/reference/kotlin/androidx/car/app/model/Action)associated with the input`actionType`or` null`if no matching[Action](https://developer.android.com/reference/kotlin/androidx/car/app/model/Action)is found. |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                      | [hashCode](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip#hashCode())`()`                                                                                                                                                                                                                                                                                                                                                                                        |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                | [toString](https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip#toString())`()`                                                                                                                                                                                                                                                                                                                                                                                        |

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```  

### getActions

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

```
fun getActions(): (Mutable)List<Action!>
```

Returns the list of[Action](https://developer.android.com/reference/kotlin/androidx/car/app/model/Action)s in the strip.  

|                                                                    See also                                                                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [addAction](https://developer.android.com/reference/kotlin/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)  

```
fun getFirstActionOfType(actionType: Int): Action?
```

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

### hashCode

```
fun hashCode(): Int
```  

### toString

```
fun toString(): String
```