GMSNavigationMutableSpeedometerUIOptions
@interface GMSNavigationMutableSpeedometerUIOptions
: GMSNavigationSpeedometerUIOptions
The mutable class that encapsulates UI configuration for different severities of speed alerts,
represented by GMSNavigationSpeedAlertSeverity
.
-
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
orGMSNavigationSpeedAlertSeverityNotSpeeding
is a no-op.Declaration
Swift
func setTextColor(_ color: UIColor, for speedAlertSeverity: GMSNavigationSpeedAlertSeverity, lightingMode: GMSNavigationLightingMode)
Objective-C
- (void)setTextColor:(nonnull 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
orGMSNavigationSpeedAlertSeverityNotSpeeding
is a no-op.Declaration
Swift
func setBackgroundColor(_ color: UIColor, for speedAlertSeverity: GMSNavigationSpeedAlertSeverity, lightingMode: GMSNavigationLightingMode)
Objective-C
- (void)setBackgroundColor:(nonnull UIColor *)color forSpeedAlertSeverity:(GMSNavigationSpeedAlertSeverity)speedAlertSeverity lightingMode:(GMSNavigationLightingMode)lightingMode;