GoogleNavigation Framework Reference
GMSNavigationVoiceGuidance
enum GMSNavigationVoiceGuidance : NSInteger {}
Determines whether voice guidance is played under certain circumstances.
-
Declaration
Objective-C
GMSNavigationVoiceGuidanceSilent = 0
-
Enables voice guidance for traffic alerts only.
Declaration
Swift
case alertsOnly = 1
Objective-C
GMSNavigationVoiceGuidanceAlertsOnly
-
Enables voice guidance for both turn-by-turn guidance and alerts.
Declaration
Swift
case alertsAndGuidance = 2
Objective-C
GMSNavigationVoiceGuidanceAlertsAndGuidance
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["`GMSNavigationVoiceGuidance` is an enum used to control voice guidance during navigation."],["It offers three options: `silent` to disable voice guidance completely, `alertsOnly` for traffic alerts only, and `alertsAndGuidance` for both turn-by-turn directions and alerts."],["Developers can use this enum to customize the level of voice guidance provided in their navigation applications."]]],["`GMSNavigationVoiceGuidance` controls voice guidance behavior, offering three options. `silent` (0) completely disables voice guidance. `alertsOnly` (1) activates voice guidance solely for traffic alerts. `alertsAndGuidance` (2) enables voice guidance for both turn-by-turn directions and traffic alerts. These are defined in both Swift (`case`) and Objective-C (`GMSNavigationVoiceGuidance`) as `enum` with different `NSInteger` values, allowing developers to customize the level of voice feedback in their applications.\n"]]