SpeedometerUiOptions

  • SpeedometerUiOptions allows customization of the speedometer's UI elements for different speed alert severity levels (MINOR, MAJOR).

  • You can configure the text and background colors for these alerts in both day and night modes.

  • To adjust the speed thresholds that trigger these alerts, use SpeedAlertOptions instead.

  • Use the SpeedometerUiOptions.Builder to create instances of this class.

public class SpeedometerUiOptions extends Object
implements Parcelable

Encapsulates speedometer UI configuration for different severity levels of speed alerts, represented by SpeedAlertSeverity.

You can use this class to customize the speedometer UI, such as the colors of the text and icon background for SpeedAlertSeverity.MINOR and SpeedAlertSeverity.MAJOR speed alerts.

If you want to customize the triggering thresholds for each SpeedAlertSeverity, use SpeedAlertOptions.

Nested Class Summary

class SpeedometerUiOptions.Builder Builder for building SpeedometerUiOptions

Inherited Constant Summary

Public Method Summary

int
getBackgroundColorDayMode(SpeedAlertSeverity speedAlertSeverity)
Returns the day mode background color for the specified SpeedAlertSeverity.
int
getBackgroundColorNightMode(SpeedAlertSeverity speedAlertSeverity)
Returns the night mode background color for the specified SpeedAlertSeverity.
int
getTextColorDayMode(SpeedAlertSeverity speedAlertSeverity)
Returns the day mode text color for the specified SpeedAlertSeverity.
int
getTextColorNightMode(SpeedAlertSeverity speedAlertSeverity)
Returns the night mode text color for the specified SpeedAlertSeverity.

Inherited Method Summary

Public Methods

public int getBackgroundColorDayMode (SpeedAlertSeverity speedAlertSeverity)

Returns the day mode background color for the specified SpeedAlertSeverity.

Parameters
speedAlertSeverity

public int getBackgroundColorNightMode (SpeedAlertSeverity speedAlertSeverity)

Returns the night mode background color for the specified SpeedAlertSeverity.

Parameters
speedAlertSeverity

public int getTextColorDayMode (SpeedAlertSeverity speedAlertSeverity)

Returns the day mode text color for the specified SpeedAlertSeverity.

Parameters
speedAlertSeverity

public int getTextColorNightMode (SpeedAlertSeverity speedAlertSeverity)

Returns the night mode text color for the specified SpeedAlertSeverity.

Parameters
speedAlertSeverity