Page Summary
-
SpeedometerUiOptions.Builderhelps customize the appearance of the speedometer in navigation. -
It allows setting background and text colors for different speed alert severities in day and night modes.
-
Use the
build()method to create aSpeedometerUiOptionsobject after customization. -
The builder provides methods like
setBackgroundColorDayMode,setBackgroundColorNightMode,setTextColorDayMode, andsetTextColorNightModeto adjust the appearance.
Builder for building SpeedometerUiOptions.
Public Constructor Summary
|
Builder()
Creates an empty builder.
|
Public Method Summary
| SpeedometerUiOptions |
build()
Builds a
SpeedometerUiOptions. |
| SpeedometerUiOptions.Builder |
setBackgroundColorDayMode(SpeedAlertSeverity speedAlertSeverity, int backgroundColor)
Sets the day mode background color for the specified
SpeedAlertSeverity. |
| SpeedometerUiOptions.Builder |
setBackgroundColorNightMode(SpeedAlertSeverity speedAlertSeverity, int backgroundColor)
Sets the night mode background color for the specified
SpeedAlertSeverity. |
| SpeedometerUiOptions.Builder |
setTextColorDayMode(SpeedAlertSeverity speedAlertSeverity, int textColor)
Sets the day mode text color for the specified
SpeedAlertSeverity. |
| SpeedometerUiOptions.Builder |
setTextColorNightMode(SpeedAlertSeverity speedAlertSeverity, int textColor)
Sets the night mode text color for the specified
SpeedAlertSeverity. |
Inherited Method Summary
Public Constructors
public Builder ()
Creates an empty builder.
Public Methods
public SpeedometerUiOptions.Builder setBackgroundColorDayMode (SpeedAlertSeverity speedAlertSeverity, int backgroundColor)
Sets the day mode background color for the specified SpeedAlertSeverity.
Parameters
| speedAlertSeverity | |
|---|---|
| backgroundColor |
public SpeedometerUiOptions.Builder setBackgroundColorNightMode (SpeedAlertSeverity speedAlertSeverity, int backgroundColor)
Sets the night mode background color for the specified SpeedAlertSeverity.
Parameters
| speedAlertSeverity | |
|---|---|
| backgroundColor |
public SpeedometerUiOptions.Builder setTextColorDayMode (SpeedAlertSeverity speedAlertSeverity, int textColor)
Sets the day mode text color for the specified SpeedAlertSeverity.
Parameters
| speedAlertSeverity | |
|---|---|
| textColor |
public SpeedometerUiOptions.Builder setTextColorNightMode (SpeedAlertSeverity speedAlertSeverity, int textColor)
Sets the night mode text color for the specified SpeedAlertSeverity.
Parameters
| speedAlertSeverity | |
|---|---|
| textColor |