NavigationVoiceAssistantCapabilities.Builder


class NavigationVoiceAssistantCapabilities.Builder


A builder of NavigationVoiceAssistantCapabilities.

Summary

Public constructors

Returns an empty Builder instance.

Public functions

NavigationVoiceAssistantCapabilities.Builder

Adds a voice assistant action supported by the navigation app.

NavigationVoiceAssistantCapabilities.Builder

Adds a voice assistant disruption supported by the navigation app.

NavigationVoiceAssistantCapabilities

Constructs the NavigationVoiceAssistantCapabilities defined by this builder.

NavigationVoiceAssistantCapabilities.Builder

Sets whether the user has granted explicit consent for the navigation app to share its active routing state with the voice assistant.

Public constructors

Builder

Added in 1.9.0-alpha01
Builder()

Returns an empty Builder instance.

Public functions

addSupportedAction

Added in 1.9.0-alpha01
fun addSupportedAction(action: Int): NavigationVoiceAssistantCapabilities.Builder

Adds a voice assistant action supported by the navigation app.

addSupportedDisruption

Added in 1.9.0-alpha01
fun addSupportedDisruption(disruption: Int): NavigationVoiceAssistantCapabilities.Builder

Adds a voice assistant disruption supported by the navigation app.

build

Added in 1.9.0-alpha01
fun build(): NavigationVoiceAssistantCapabilities

Constructs the NavigationVoiceAssistantCapabilities defined by this builder.

setVoiceAssistantConsentGranted

Added in 1.9.0-alpha01
fun setVoiceAssistantConsentGranted(isConsentGranted: Boolean): NavigationVoiceAssistantCapabilities.Builder

Sets whether the user has granted explicit consent for the navigation app to share its active routing state with the voice assistant.

By default, this is false.