public class **SpeedometerUiOptions** extends Object  
implements Parcelable Encapsulates speedometer UI configuration for different severity levels of speed alerts,
represented by `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`.

You can use this class to customize the speedometer UI, such as the colors of the text and
icon background for `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity#MINOR` and `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity#MAJOR` speed
alerts.

If you want to customize the triggering thresholds for each `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`, use
`https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertOptions`.

### Nested Class Summary

|---|---|---|---|
| class | [SpeedometerUiOptions.Builder](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedometerUiOptions.Builder) || Builder for building `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedometerUiOptions`. |

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Method Summary

|---|---|
| int | [getBackgroundColorDayMode](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedometerUiOptions#getBackgroundColorDayMode(com.google.android.libraries.navigation.SpeedAlertSeverity))([SpeedAlertSeverity](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity) speedAlertSeverity) Returns the day mode background color for the specified `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`. |
| int | [getBackgroundColorNightMode](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedometerUiOptions#getBackgroundColorNightMode(com.google.android.libraries.navigation.SpeedAlertSeverity))([SpeedAlertSeverity](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity) speedAlertSeverity) Returns the night mode background color for the specified `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`. |
| int | [getTextColorDayMode](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedometerUiOptions#getTextColorDayMode(com.google.android.libraries.navigation.SpeedAlertSeverity))([SpeedAlertSeverity](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity) speedAlertSeverity) Returns the day mode text color for the specified `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`. |
| int | [getTextColorNightMode](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedometerUiOptions#getTextColorNightMode(com.google.android.libraries.navigation.SpeedAlertSeverity))([SpeedAlertSeverity](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity) speedAlertSeverity) Returns the night mode text color for the specified `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel(Parcel arg0, int arg1) |

## Public Methods

#### public int
**getBackgroundColorDayMode**
([SpeedAlertSeverity](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity) speedAlertSeverity)

Returns the day mode background color for the specified `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`.

##### Parameters

| speedAlertSeverity |   |
|---|---|

#### public int
**getBackgroundColorNightMode**
([SpeedAlertSeverity](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity) speedAlertSeverity)

Returns the night mode background color for the specified `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`.

##### Parameters

| speedAlertSeverity |   |
|---|---|

#### public int
**getTextColorDayMode**
([SpeedAlertSeverity](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity) speedAlertSeverity)

Returns the day mode text color for the specified `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`.

##### Parameters

| speedAlertSeverity |   |
|---|---|

#### public int
**getTextColorNightMode**
([SpeedAlertSeverity](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity) speedAlertSeverity)

Returns the night mode text color for the specified `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/navigation/SpeedAlertSeverity`.

##### Parameters

| speedAlertSeverity |   |
|---|---|