setPrimaryTrafficColor
fun Expected<RouteLineError, RouteSetValue>.setPrimaryTrafficColor(@ColorInt color: Int): Expected<RouteLineError, RouteSetValue>
Content copied to clipboard
Overrides the color Expression for the primary traffic line 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 primary traffic line.
fun Expected<RouteLineError, RouteSetValue>.setPrimaryTrafficColor(expression: Expression): Expected<RouteLineError, RouteSetValue>
Content copied to clipboard
Overrides the color Expression for the primary traffic line 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 primary traffic line.