Builder

class Builder

Builder of MapboxSpeedInfoOptions

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): MapboxSpeedInfoOptions

Build a new instance of MapboxSpeedInfoOptions

Link copied to clipboard
fun currentSpeedDirection(currentSpeedDirection: CurrentSpeedDirection): MapboxSpeedInfoOptions.Builder

Apply to render the user's current speed either to the start, top, end or bottom of posted speed limit.

Link copied to clipboard
fun renderWithSpeedSign(renderWithSpeedSign: SpeedLimitSign?): MapboxSpeedInfoOptions.Builder

Apply to render MapboxSpeedInfoView in VIENNA or MUTCD convention irrespective of user's current location by setting it to SpeedLimitSign.VIENNA or SpeedLimitSign.MUTCD. Set it to null to let MapboxSpeedInfoView decide the convention based on user's current location.

Link copied to clipboard
fun showLegend(showLegend: Boolean): MapboxSpeedInfoOptions.Builder

Apply the value to show or hide the text "Speed Limit" for MUTCD based conventions.

Link copied to clipboard
fun showSpeedWhenUnavailable(showSpeedWhenUnavailable: Boolean): MapboxSpeedInfoOptions.Builder

Apply the value to show or hide speed UI when posted speed data is unavailable. Default value is false and speed UI will not be shown

Link copied to clipboard
fun showUnit(showUnit: Boolean): MapboxSpeedInfoOptions.Builder

Apply the value to show or hide posted speed limit unit for MUTCD based conventions.

Link copied to clipboard
fun speedInfoStyle(speedInfoStyle: SpeedInfoStyle): MapboxSpeedInfoOptions.Builder

Apply the value to apply styles to MapboxSpeedInfoView.