SpeedometerUiOptions

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