setAlternativeTrafficColor
fun Expected<RouteLineError, RouteSetValue>.setAlternativeTrafficColor(@ColorInt color: Int): Expected<RouteLineError, RouteSetValue>
Content copied to clipboard
Overrides the color Expression for the alternative traffic lines with the color indicated. The entire traffic line will take on the color provided. If the Expected is an error the same Expected object is returned.
Return
an Expected with the color mutation applied
Parameters
color
the color to use for the alternative traffic lines.
fun Expected<RouteLineError, RouteSetValue>.setAlternativeTrafficColor(expression: Expression): Expected<RouteLineError, RouteSetValue>
Content copied to clipboard
Overrides the color Expression for the alternative traffic lines with the Expression provided. If the Expected is an error the same Expected object is returned.
Return
an Expected with the expression mutation applied
Parameters
expression
the Expression to use for the alternative traffic lines.