NavigationVoiceAssistantCapabilities


@CarProtocol
@ExperimentalCarApi
@RequiresCarApi(value = 9)
public final class NavigationVoiceAssistantCapabilities


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

Constants

static final int

Indicates support for allowing and avoiding ferries.

static final int

Indicates support for allowing and avoiding highways.

static final int

Indicates support for allowing and avoiding tolls.

static final int

Indicates support for clearing search results.

static final int

Indicates support for exiting navigation.

static final int

Indicates support for follow mode.

static final int

Indicates support for muting and unmuting voice guidance.

static final int

Indicates support for showing the route overview.

static final int

Indicates support for showing alternate routes.

static final int

Indicates support for showing the directions list.

static final int

Indicates support for showing the satellite view.

static final int

Indicates support for showing the traffic view.

static final int

Indicates an undefined or unknown action.

static final int

Indicates support for receiving reports for construction zones.

static final int

Indicates support for receiving reports for crashes.

static final int

Indicates support for receiving reports for flooding.

static final int

Indicates support for receiving reports for fog.

static final int

Indicates support for receiving reports for objects on the road.

static final int

Indicates support for receiving reports for police presence.

static final int

Indicates support for receiving reports for potholes.

static final int

Indicates support for receiving reports for road closures.

static final int

Indicates support for receiving reports for snow.

static final int

Indicates support for receiving reports for traffic jams.

static final int

Indicates an undefined or unknown disruption.

static final int

Indicates support for receiving reports for vehicles on the road.

Public methods

boolean
@NonNull Set<Integer>

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

@NonNull Set<Integer>

Returns the set of disruptions supported by the navigation app.

int
boolean

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

@NonNull String

Constants

ACTION_ALLOW_AND_AVOID_FERRIES

Added in 1.9.0-alpha01
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-alpha01
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-alpha01
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-alpha01
public static final int ACTION_CLEAR_SEARCH_RESULTS = 4

Indicates support for clearing search results.

ACTION_EXIT_NAVIGATION

Added in 1.9.0-alpha01
public static final int ACTION_EXIT_NAVIGATION = 5

Indicates support for exiting navigation.

ACTION_FOLLOW_MODE

Added in 1.9.0-alpha01
public static final int ACTION_FOLLOW_MODE = 6

Indicates support for follow mode.

ACTION_MUTE_AND_UNMUTE

Added in 1.9.0-alpha01
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-alpha01
public static final int ACTION_ROUTE_OVERVIEW = 8

Indicates support for showing the route overview.

ACTION_SHOW_ALTERNATES

Added in 1.9.0-alpha01
public static final int ACTION_SHOW_ALTERNATES = 9

Indicates support for showing alternate routes.

ACTION_SHOW_DIRECTIONS_LIST

Added in 1.9.0-alpha01
public static final int ACTION_SHOW_DIRECTIONS_LIST = 10

Indicates support for showing the directions list.

ACTION_SHOW_SATELLITE

Added in 1.9.0-alpha01
public static final int ACTION_SHOW_SATELLITE = 11

Indicates support for showing the satellite view.

ACTION_SHOW_TRAFFIC

Added in 1.9.0-alpha01
public static final int ACTION_SHOW_TRAFFIC = 12

Indicates support for showing the traffic view.

ACTION_UNDEFINED

Added in 1.9.0-alpha01
public static final int ACTION_UNDEFINED = 0

Indicates an undefined or unknown action.

DISRUPTION_REPORT_CONSTRUCTION

Added in 1.9.0-alpha01
public static final int DISRUPTION_REPORT_CONSTRUCTION = 1

Indicates support for receiving reports for construction zones.

DISRUPTION_REPORT_CRASH

Added in 1.9.0-alpha01
public static final int DISRUPTION_REPORT_CRASH = 2

Indicates support for receiving reports for crashes.

DISRUPTION_REPORT_FLOODING

Added in 1.9.0-alpha01
public static final int DISRUPTION_REPORT_FLOODING = 3

Indicates support for receiving reports for flooding.

DISRUPTION_REPORT_FOG

Added in 1.9.0-alpha01
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-alpha01
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-alpha01
public static final int DISRUPTION_REPORT_POLICE = 6

Indicates support for receiving reports for police presence.

DISRUPTION_REPORT_POTHOLE

Added in 1.9.0-alpha01
public static final int DISRUPTION_REPORT_POTHOLE = 7

Indicates support for receiving reports for potholes.

DISRUPTION_REPORT_ROAD_CLOSURE

Added in 1.9.0-alpha01
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-alpha01
public static final int DISRUPTION_REPORT_SNOW = 9

Indicates support for receiving reports for snow.

DISRUPTION_REPORT_TRAFFIC

Added in 1.9.0-alpha01
public static final int DISRUPTION_REPORT_TRAFFIC = 10

Indicates support for receiving reports for traffic jams.

DISRUPTION_REPORT_UNDEFINED

Added in 1.9.0-alpha01
public static final int DISRUPTION_REPORT_UNDEFINED = 0

Indicates an undefined or unknown disruption.

DISRUPTION_REPORT_VEHICLE

Added in 1.9.0-alpha01
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-alpha01
public @NonNull Set<IntegergetSupportedActions()

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

getSupportedDisruptions

Added in 1.9.0-alpha01
public @NonNull Set<IntegergetSupportedDisruptions()

Returns the set of disruptions supported by the navigation app.

hashCode

public int hashCode()

isVoiceAssistantConsentGranted

Added in 1.9.0-alpha01
public boolean isVoiceAssistantConsentGranted()

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

toString

public @NonNull String toString()