# 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)
public final 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 |
|---|
| `public final class https://developer.android.com/reference/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities.Builder` A builder of `https://developer.android.com/reference/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities`. |

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

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#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/Set.html<https://developer.android.com/reference/java/lang/Integer.html>` | `https://developer.android.com/reference/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#getSupportedActions()()` Returns the set of voice assistant actions supported by the navigation app. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/Set.html<https://developer.android.com/reference/java/lang/Integer.html>` | `https://developer.android.com/reference/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#getSupportedDisruptions()()` Returns the set of disruptions supported by the navigation app. |
| `int` | `https://developer.android.com/reference/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities#hashCode()()` |
| `boolean` | `https://developer.android.com/reference/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://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/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)

```
public static final int ACTION_ALLOW_AND_AVOID_FERRIES = 1
```

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)

```
public static final int ACTION_ALLOW_AND_AVOID_HIGHWAYS = 2
```

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)

```
public static final int ACTION_ALLOW_AND_AVOID_TOLLS = 3
```

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)

```
public static final int ACTION_CLEAR_SEARCH_RESULTS = 4
```

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)

```
public static final int ACTION_EXIT_NAVIGATION = 5
```

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)

```
public static final int ACTION_FOLLOW_MODE = 6
```

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)

```
public static final int ACTION_MUTE_AND_UNMUTE = 7
```

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)

```
public static final int ACTION_ROUTE_OVERVIEW = 8
```

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)

```
public static final int ACTION_SHOW_ALTERNATES = 9
```

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)

```
public static final int ACTION_SHOW_DIRECTIONS_LIST = 10
```

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)

```
public static final int ACTION_SHOW_SATELLITE = 11
```

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)

```
public static final int ACTION_SHOW_TRAFFIC = 12
```

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)

```
public static final int ACTION_UNDEFINED = 0
```

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)

```
public static final int DISRUPTION_REPORT_CONSTRUCTION = 1
```

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)

```
public static final int DISRUPTION_REPORT_CRASH = 2
```

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)

```
public static final int DISRUPTION_REPORT_FLOODING = 3
```

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)

```
public static final int DISRUPTION_REPORT_FOG = 4
```

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)

```
public static final int DISRUPTION_REPORT_OBJECT_ON_ROAD = 5
```

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)

```
public static final int DISRUPTION_REPORT_POLICE = 6
```

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)

```
public static final int DISRUPTION_REPORT_POTHOLE = 7
```

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)

```
public static final int DISRUPTION_REPORT_ROAD_CLOSURE = 8
```

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)

```
public static final int DISRUPTION_REPORT_SNOW = 9
```

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)

```
public static final int DISRUPTION_REPORT_TRAFFIC = 10
```

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)

```
public static final int DISRUPTION_REPORT_UNDEFINED = 0
```

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)

```
public static final int DISRUPTION_REPORT_VEHICLE = 11
```

Indicates support for receiving reports for vehicles on the road.

## Public methods

### equals

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

### getSupportedActions

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

```
public @NonNull Set<Integer> getSupportedActions()
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/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)

```
public @NonNull Set<Integer> getSupportedDisruptions()
```

Returns the set of disruptions supported by the navigation app.

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

### hashCode

```
public int hashCode()
```

### isVoiceAssistantConsentGranted

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

```
public boolean isVoiceAssistantConsentGranted()
```

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/androidx/car/app/navigation/model/NavigationVoiceAssistantCapabilities.Builder#setVoiceAssistantConsentGranted(boolean)` |   |

### toString

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