GMSNavigationSpeedometerUIOptions Class Reference

GMSNavigationSpeedometerUIOptions Class Reference

Overview

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.

Inherited by GMSNavigationMutableSpeedometerUIOptions.

Public Member Functions

(UIColor *) - textColorForSpeedAlertSeverity:lightingMode:
 Gets the color of the speed alert text to use for the specified speed alert severity and lighting mode.
(UIColor *) - backgroundColorForSpeedAlertSeverity:lightingMode:
 Gets the speed alert icon background color to use for the specified speed alert severity and lighting mode.

Member Function Documentation

- (UIColor *) textColorForSpeedAlertSeverity: (GMSNavigationSpeedAlertSeverity speedAlertSeverity
lightingMode: (GMSNavigationLightingMode lightingMode 

Gets the color of the speed alert text to use for the specified speed alert severity and lighting mode.

@note This returns UIColor.clearColor for GMSNavigationSpeedAlertSeverityUnknown and GMSNavigationSpeedAlertSeverityNotSpeeding.

- (UIColor *) backgroundColorForSpeedAlertSeverity: (GMSNavigationSpeedAlertSeverity speedAlertSeverity
lightingMode: (GMSNavigationLightingMode lightingMode 

Gets the speed alert icon background color to use for the specified speed alert severity and lighting mode.

@note This returns UIColor.clearColor for GMSNavigationSpeedAlertSeverityUnknown and GMSNavigationSpeedAlertSeverityNotSpeeding.