# GoogleNavigation Framework Reference

# GMSNavigationSpeedometerUIOptions

    @interface GMSNavigationSpeedometerUIOptions
        : NSObject <NSCopying, NSMutableCopying>

An immutable class that encapsulates UI configuration for different severities of speed alerts,
represented by `https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html`.

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 `https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationSpeedAlertOptions.html` to define the triggering thresholds
for each severity of speed alert.
- `


  ### [-textColorForSpeedAlertSeverity:lightingMode:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationSpeedometerUIOptions#/c:objc(cs)GMSNavigationSpeedometerUIOptions(im)textColorForSpeedAlertSeverity: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.
    `

  #### Declaration

  Swift

      func textColor(for speedAlertSeverity: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html, lightingMode: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationLightingMode.html) -> UIColor

  Objective-C

      - (nonnull UIColor *)textColorForSpeedAlertSeverity:
                               (https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html)speedAlertSeverity
                                             lightingMode:(https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationLightingMode.html)
                                                              lightingMode;

- `


  ### [-backgroundColorForSpeedAlertSeverity:lightingMode:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationSpeedometerUIOptions#/c:objc(cs)GMSNavigationSpeedometerUIOptions(im)backgroundColorForSpeedAlertSeverity: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.
    `

  #### Declaration

  Swift

      func backgroundColor(for speedAlertSeverity: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html, lightingMode: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationLightingMode.html) -> UIColor

  Objective-C

      - (nonnull UIColor *)backgroundColorForSpeedAlertSeverity:
                               (https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html)speedAlertSeverity
                                                   lightingMode:
                                                       (https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationLightingMode.html)
                                                           lightingMode;