GMSNavigationMutableSpeedometerUIOptions Class Reference

GMSNavigationMutableSpeedometerUIOptions Class Reference

Overview

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

Inherits GMSNavigationSpeedometerUIOptions.

Public Member Functions

(void) - setTextColor:forSpeedAlertSeverity:lightingMode:
 Sets the color of the speed alert text to use for the specified speed alert severity and lighting mode.
(void) - setBackgroundColor:forSpeedAlertSeverity:lightingMode:
 Sets the speed alert icon background color to use for the specified speed alert severity and lighting mode.
(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

- (void) setTextColor: (UIColor *)  color
forSpeedAlertSeverity: (GMSNavigationSpeedAlertSeverity speedAlertSeverity
lightingMode: (GMSNavigationLightingMode lightingMode 

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

@note Attempting to set the color for GMSNavigationSpeedAlertSeverityUnknown or GMSNavigationSpeedAlertSeverityNotSpeeding is a no-op.

- (void) setBackgroundColor: (UIColor *)  color
forSpeedAlertSeverity: (GMSNavigationSpeedAlertSeverity speedAlertSeverity
lightingMode: (GMSNavigationLightingMode lightingMode 

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

@note Attempting to set the color for GMSNavigationSpeedAlertSeverityUnknown or GMSNavigationSpeedAlertSeverityNotSpeeding is a no-op.

- (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.