sdk-maps / com.tomtom.online.sdk.map.route.traffic / RouteTrafficStyle / Builder

Builder

class Builder

Builder class used to create RouteTrafficStyle instance.

Constructors

<init>

Builder(color: Int? = null, width: Float = 1.0f, dashList: List<DashDescriptor> = emptyList(), lineCapType: LineCapType = LineCapType.ROUND, lineJoinType: LineJoinType = LineJoinType.ROUND)

Builder class used to create RouteTrafficStyle instance.

Functions

build

fun build(): RouteTrafficStyle

Create RouteTrafficStyle instance.

color

fun color(color: Int): RouteTrafficStyle.Builder

Set the traffic color.

dashList

fun dashList(dashList: List<DashDescriptor>): RouteTrafficStyle.Builder

Set dashes and gaps lengths. Lengths are later scaled by the line width.

lineCapType

fun lineCapType(lineCapType: LineCapType): RouteTrafficStyle.Builder

Set the display of line endings.

lineJoinType

fun lineJoinType(lineJoinType: LineJoinType): RouteTrafficStyle.Builder

Set the display of lines when joining.

width

fun width(width: Float): RouteTrafficStyle.Builder

Set the traffic width.