# NavigationVoiceAssistantCapabilities

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/navigation/model/NavigationVoiceAssistantCapabilities.java+class:androidx.car.app.navigation.model.NavigationVoiceAssistantCapabilities) Added in [1.9.0-alpha03](https://developer.android.com/jetpack/androidx/releases/car-app#1.9.0-alpha03)

*** ** * ** ***


```
@CarProtocol
@ExperimentalCarApi
@RequiresCarApi(value = 9)
class NavigationVoiceAssistantCapabilities
```

<br />

*** ** * ** ***

Represents the voice assistant capabilities of the navigation app.

This model is used to communicate to the host which voice actions and disruptions the navigation app can currently handle, as well as whether the user has granted consent for the navigation app to share its active routing state with the voice assistant.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities.Builder` A builder of `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities`. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_ALLOW_AND_AVOID_FERRIES() = 1` Indicates support for allowing and avoiding ferries. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_ALLOW_AND_AVOID_HIGHWAYS() = 2` Indicates support for allowing and avoiding highways. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_ALLOW_AND_AVOID_TOLLS() = 3` Indicates support for allowing and avoiding tolls. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_CLEAR_SEARCH_RESULTS() = 4` Indicates support for clearing search results. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_EXIT_NAVIGATION() = 5` Indicates support for exiting navigation. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_FOLLOW_MODE() = 6` Indicates support for follow mode. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_MUTE_AND_UNMUTE() = 7` Indicates support for muting and unmuting voice guidance. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_ROUTE_OVERVIEW() = 8` Indicates support for showing the route overview. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_SHOW_ALTERNATES() = 9` Indicates support for showing alternate routes. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_SHOW_DIRECTIONS_LIST() = 10` Indicates support for showing the directions list. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_SHOW_SATELLITE() = 11` Indicates support for showing the satellite view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_SHOW_TRAFFIC() = 12` Indicates support for showing the traffic view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#ACTION_UNDEFINED() = 0` Indicates an undefined or unknown action. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_CONSTRUCTION() = 1` Indicates support for receiving reports for construction zones. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_CRASH() = 2` Indicates support for receiving reports for crashes. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_FLOODING() = 3` Indicates support for receiving reports for flooding. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_FOG() = 4` Indicates support for receiving reports for fog. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_OBJECT_ON_ROAD() = 5` Indicates support for receiving reports for objects on the road. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_POLICE() = 6` Indicates support for receiving reports for police presence. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_POTHOLE() = 7` Indicates support for receiving reports for potholes. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_ROAD_CLOSURE() = 8` Indicates support for receiving reports for road closures. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_SNOW() = 9` Indicates support for receiving reports for snow. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_TRAFFIC() = 10` Indicates support for receiving reports for traffic jams. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_UNDEFINED() = 0` Indicates an undefined or unknown disruption. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#DISRUPTION_REPORT_VEHICLE() = 11` Indicates support for receiving reports for vehicles on the road. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#equals(java.lang.Object)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-set/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#getSupportedActions()()` Returns the set of voice assistant actions supported by the navigation app. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-set/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#getSupportedDisruptions()()` Returns the set of disruptions supported by the navigation app. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#isVoiceAssistantConsentGranted()()` Returns whether the user has granted consent for the navigation app to share its state with the voice assistant. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#toString()()` |

## Constants

### ACTION_ALLOW_AND_AVOID_FERRIES

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

```
const val ACTION_ALLOW_AND_AVOID_FERRIES = 1: Int
```

Indicates support for allowing and avoiding ferries.

### ACTION_ALLOW_AND_AVOID_HIGHWAYS

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

```
const val ACTION_ALLOW_AND_AVOID_HIGHWAYS = 2: Int
```

Indicates support for allowing and avoiding highways.

### ACTION_ALLOW_AND_AVOID_TOLLS

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

```
const val ACTION_ALLOW_AND_AVOID_TOLLS = 3: Int
```

Indicates support for allowing and avoiding tolls.

### ACTION_CLEAR_SEARCH_RESULTS

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

```
const val ACTION_CLEAR_SEARCH_RESULTS = 4: Int
```

Indicates support for clearing search results.

### ACTION_EXIT_NAVIGATION

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

```
const val ACTION_EXIT_NAVIGATION = 5: Int
```

Indicates support for exiting navigation.

### ACTION_FOLLOW_MODE

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

```
const val ACTION_FOLLOW_MODE = 6: Int
```

Indicates support for follow mode.

### ACTION_MUTE_AND_UNMUTE

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

```
const val ACTION_MUTE_AND_UNMUTE = 7: Int
```

Indicates support for muting and unmuting voice guidance.

### ACTION_ROUTE_OVERVIEW

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

```
const val ACTION_ROUTE_OVERVIEW = 8: Int
```

Indicates support for showing the route overview.

### ACTION_SHOW_ALTERNATES

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

```
const val ACTION_SHOW_ALTERNATES = 9: Int
```

Indicates support for showing alternate routes.

### ACTION_SHOW_DIRECTIONS_LIST

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

```
const val ACTION_SHOW_DIRECTIONS_LIST = 10: Int
```

Indicates support for showing the directions list.

### ACTION_SHOW_SATELLITE

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

```
const val ACTION_SHOW_SATELLITE = 11: Int
```

Indicates support for showing the satellite view.

### ACTION_SHOW_TRAFFIC

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

```
const val ACTION_SHOW_TRAFFIC = 12: Int
```

Indicates support for showing the traffic view.

### ACTION_UNDEFINED

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

```
const val ACTION_UNDEFINED = 0: Int
```

Indicates an undefined or unknown action.

### DISRUPTION_REPORT_CONSTRUCTION

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

```
const val DISRUPTION_REPORT_CONSTRUCTION = 1: Int
```

Indicates support for receiving reports for construction zones.

### DISRUPTION_REPORT_CRASH

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

```
const val DISRUPTION_REPORT_CRASH = 2: Int
```

Indicates support for receiving reports for crashes.

### DISRUPTION_REPORT_FLOODING

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

```
const val DISRUPTION_REPORT_FLOODING = 3: Int
```

Indicates support for receiving reports for flooding.

### DISRUPTION_REPORT_FOG

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

```
const val DISRUPTION_REPORT_FOG = 4: Int
```

Indicates support for receiving reports for fog.

### DISRUPTION_REPORT_OBJECT_ON_ROAD

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

```
const val DISRUPTION_REPORT_OBJECT_ON_ROAD = 5: Int
```

Indicates support for receiving reports for objects on the road.

### DISRUPTION_REPORT_POLICE

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

```
const val DISRUPTION_REPORT_POLICE = 6: Int
```

Indicates support for receiving reports for police presence.

### DISRUPTION_REPORT_POTHOLE

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

```
const val DISRUPTION_REPORT_POTHOLE = 7: Int
```

Indicates support for receiving reports for potholes.

### DISRUPTION_REPORT_ROAD_CLOSURE

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

```
const val DISRUPTION_REPORT_ROAD_CLOSURE = 8: Int
```

Indicates support for receiving reports for road closures.

### DISRUPTION_REPORT_SNOW

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

```
const val DISRUPTION_REPORT_SNOW = 9: Int
```

Indicates support for receiving reports for snow.

### DISRUPTION_REPORT_TRAFFIC

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

```
const val DISRUPTION_REPORT_TRAFFIC = 10: Int
```

Indicates support for receiving reports for traffic jams.

### DISRUPTION_REPORT_UNDEFINED

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

```
const val DISRUPTION_REPORT_UNDEFINED = 0: Int
```

Indicates an undefined or unknown disruption.

### DISRUPTION_REPORT_VEHICLE

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

```
const val DISRUPTION_REPORT_VEHICLE = 11: Int
```

Indicates support for receiving reports for vehicles on the road.

## Public functions

### equals

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

### getSupportedActions

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

```
fun getSupportedActions(): (Mutable)Set<Int!>
```

Returns the set of voice assistant actions supported by the navigation app.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities.Builder#addSupportedAction(int)` |   |

### getSupportedDisruptions

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

```
fun getSupportedDisruptions(): (Mutable)Set<Int!>
```

Returns the set of disruptions supported by the navigation app.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities.Builder#addSupportedDisruption(int)` |   |

### hashCode

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

### isVoiceAssistantConsentGranted

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

```
fun isVoiceAssistantConsentGranted(): Boolean
```

Returns whether the user has granted consent for the navigation app to share its state with the voice assistant.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities.Builder#setVoiceAssistantConsentGranted(boolean)` |   |

### toString

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