GoogleNavigation Framework Reference

  • GMSNavigationSpeedometerUIOptions is an immutable class used to customize the UI of speed alerts during navigation.

  • It allows customization of the speed alert UI elements, such as text and background colors, for different speed alert severities (minor, major, etc.).

  • It works in conjunction with GMSNavigationSpeedAlertOptions which defines the thresholds for triggering each speed alert severity.

  • Provides methods to get the text color and background color for different speed alert severities and lighting modes.

GMSNavigationSpeedometerUIOptions

@interface GMSNavigationSpeedometerUIOptions
    : NSObject <NSCopying, NSMutableCopying>

An immutable class that encapsulates UI configuration for different severities of speed alerts, represented by GMSNavigationSpeedAlertSeverity.

You can use this class to customize the speed alert UI, such as the colors of the font and icon background of minor and major speed alert.

You use GMSNavigationSpeedometerUIOptions to customize the speed alert UI for different severities. You must use GMSNavigationSpeedAlertOptions to define the triggering thresholds for each severity of speed alert.