AI-generated Key Takeaways
-
GMSNavigationMutableSpeedometerUIOptionsallows customization of the UI for speed alerts with varying severity levels. -
It provides methods to set the text and background color for speed alerts based on severity and lighting mode.
-
Setting colors for
GMSNavigationSpeedAlertSeverityUnknownorGMSNavigationSpeedAlertSeverityNotSpeedinghas no effect.
GMSNavigationMutableSpeedometerUIOptions
@interface GMSNavigationMutableSpeedometerUIOptions
: GMSNavigationSpeedometerUIOptionsThe 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
GMSNavigationSpeedAlertSeverityUnknownorGMSNavigationSpeedAlertSeverityNotSpeedingis 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
GMSNavigationSpeedAlertSeverityUnknownorGMSNavigationSpeedAlertSeverityNotSpeedingis 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;