MapboxRouteCalloutViewOptions

class MapboxRouteCalloutViewOptions

Options for configuration appearance of route callouts.

Parameters

backgroundColor

to style the background color of route callout

selectedBackgroundColor

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

textColor

to style the text color of route callout

selectedTextColor

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

fasterTextColor

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

slowerTextColor

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

durationTextAppearance

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

Types

Link copied to clipboard
class Builder

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
fun toBuilder(): MapboxRouteCalloutViewOptions.Builder

Get a builder to customize a subset of current options.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

Link copied to clipboard
val backgroundColor: Int
Link copied to clipboard
val durationTextAppearance: Int
Link copied to clipboard
val fasterTextColor: Int
Link copied to clipboard
val selectedBackgroundColor: Int
Link copied to clipboard
val selectedTextColor: Int
Link copied to clipboard
val slowerTextColor: Int
Link copied to clipboard
val textColor: Int