Builder

class Builder

A builder for instantiating the RouteLineResources class

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard

The color used for the alternative route casing line(s) which is positioned below the route line giving the line the appearance of a boarder.

Link copied to clipboard

The color used for road closure sections of an alternative route(s).

Link copied to clipboard

The default color used for alternative route lines.

Link copied to clipboard

The color used for representing heavy traffic congestion on alternative routes.

Link copied to clipboard

The color used for representing low traffic congestion on alternative routes.

Link copied to clipboard

The color used for representing moderate traffic congestion on alternative routes.

Link copied to clipboard

The color used for the alternative route restricted road representation.

Link copied to clipboard

The color used for representing severe traffic congestion on alternative routes.

Link copied to clipboard

The color used for representing unknown traffic congestion on alternative routes.

Link copied to clipboard
fun build(): RouteLineColorResources

Creates a instance of RouteLineResources

Link copied to clipboard
fun heavyCongestionRange(range: IntRange): RouteLineColorResources.Builder

The default range for heavy traffic congestion

Link copied to clipboard

The color used for casing of route legs that aren't currently being navigated.

Link copied to clipboard

The color used for road closure sections of a route on inactive legs of the route.

Link copied to clipboard

The color used for representing heavy traffic congestion on inactive legs of the route.

Link copied to clipboard

The color used for representing low traffic congestion on inactive legs of the route.

Link copied to clipboard

The color used for representing moderate traffic congestion on inactive legs of the route.

Link copied to clipboard

The color used for the restricted road representation on inactive legs of the route.

Link copied to clipboard
fun inActiveRouteLegsColor(@ColorInt color: Int): RouteLineColorResources.Builder

The color used for route legs that aren't currently being navigated.

Link copied to clipboard

The color used for representing severe traffic congestion on inactive legs of the route.

Link copied to clipboard

The color used for representing unknown traffic congestion on inactive legs of the route.

Link copied to clipboard
fun lowCongestionRange(range: IntRange): RouteLineColorResources.Builder

The default range for low traffic congestion

Link copied to clipboard
fun moderateCongestionRange(range: IntRange): RouteLineColorResources.Builder

The default range for moderate traffic congestion

Link copied to clipboard
fun restrictedRoadColor(@ColorInt color: Int): RouteLineColorResources.Builder

The color used for the restricted road representation.

Link copied to clipboard
fun routeCasingColor(@ColorInt color: Int): RouteLineColorResources.Builder

The color used for the route casing line which is positioned below the route line giving the line the appearance of a boarder.

Link copied to clipboard
fun routeClosureColor(@ColorInt color: Int): RouteLineColorResources.Builder

The color used for road closure sections of a route.

Link copied to clipboard
fun routeDefaultColor(@ColorInt color: Int): RouteLineColorResources.Builder

The default color of the route line

Link copied to clipboard
fun routeHeavyCongestionColor(@ColorInt color: Int): RouteLineColorResources.Builder

The color used for representing heavy traffic congestion.

Link copied to clipboard

The color of the casing section of route line behind the puck representing the section of the route traveled. By default the casing line is beneath the route line and gives the appearance of a border.

Link copied to clipboard
fun routeLineTraveledColor(@ColorInt color: Int): RouteLineColorResources.Builder

The color of the section of route line behind the puck representing the section of the route traveled.

Link copied to clipboard
fun routeLowCongestionColor(@ColorInt color: Int): RouteLineColorResources.Builder

The color used for representing low traffic congestion.

Link copied to clipboard

The color used for representing moderate traffic congestion.

Link copied to clipboard

The color used for representing severe traffic congestion.

Link copied to clipboard

The color used for representing unknown traffic congestion.

Link copied to clipboard
fun severeCongestionRange(range: IntRange): RouteLineColorResources.Builder

The default range for severe traffic congestion