Builder

class Builder

Builder class for NavigationUiOptions.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): NavigationUiOptions

Creates an instance of NavigationUiOptions.

Link copied to clipboard
fun keepInBackground(enabled: Boolean): NavigationUiOptions.Builder

Sets whether or not the navigation should be kept in background within Android Service.

Link copied to clipboard
fun soundEnabled(enabled: Boolean): NavigationUiOptions.Builder

Sets whether or not voice guidance should be used.

Link copied to clipboard
fun units(units: Units): NavigationUiOptions.Builder

Sets preferred Units. See Units documentation for more details.

Link copied to clipboard
fun voiceLanguage(language: Locale): NavigationUiOptions.Builder

Sets the language of the voice guidance. The target language must be enabled in TTS settings on the device. Defaults to en-US.