Builder

class Builder

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun backgroundColor(@ColorRes value: Int): MapboxRouteCalloutViewOptions.Builder

to style the background color of route callout

Link copied to clipboard
fun build(): MapboxRouteCalloutViewOptions
Link copied to clipboard

to style the text appearance of route callout. Note that textColor parameter will be overridden by other parameters from MapboxRouteCalloutViewOptions

Link copied to clipboard
fun fasterTextColor(@ColorRes value: Int): MapboxRouteCalloutViewOptions.Builder

to style the text color of route callout attaching to alternative route which duration is faster in comparison with the primary one in RouteCalloutType.RelativeDurationsOnAlternative state

Link copied to clipboard

to style the background color of route callout attaching to the primary route in RouteCalloutType.RouteDurations state

Link copied to clipboard
fun selectedTextColor(@ColorRes value: Int): MapboxRouteCalloutViewOptions.Builder

to style the text color of route callout attaching to the primary route in RouteCalloutType.RouteDurations state

Link copied to clipboard
fun slowerTextColor(@ColorRes value: Int): MapboxRouteCalloutViewOptions.Builder

to style the text color of route callout attaching to alternative route which duration is slower in comparison with the primary one in RouteCalloutType.RelativeDurationsOnAlternative state

Link copied to clipboard
fun textColor(@ColorRes value: Int): MapboxRouteCalloutViewOptions.Builder

to style the text color of route callout