class Builder
Builder class used to create RouteTrafficStyle instance.
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. |
fun build(): RouteTrafficStyle
Create RouteTrafficStyle instance. |
|
fun color(color: Int): RouteTrafficStyle.Builder
Set the traffic color. |
|
fun dashList(dashList: List<DashDescriptor>): RouteTrafficStyle.Builder
Set dashes and gaps lengths. Lengths are later scaled by the line width. |
|
fun lineCapType(lineCapType: LineCapType): RouteTrafficStyle.Builder
Set the display of line endings. |
|
fun lineJoinType(lineJoinType: LineJoinType): RouteTrafficStyle.Builder
Set the display of lines when joining. |
|
fun width(width: Float): RouteTrafficStyle.Builder
Set the traffic width. |