MapboxTurnIconsApi

class MapboxTurnIconsApi(var turnIconResources: TurnIconResources)

An API for generating turn icon drawable resource references.

Parameters

turnIconResources

a TurnIconResources reference

Constructors

Link copied to clipboard
fun MapboxTurnIconsApi(turnIconResources: TurnIconResources)

Functions

Link copied to clipboard
fun generateTurnIcon(    type: String?,     degrees: Float?,     modifier: String?,     drivingSide: String?): Expected<TurnIconError, ManeuverTurnIcon>

Returns a reference to a drawable for turn icons.

Link copied to clipboard
fun updateResources(resources: TurnIconResources)

Invoke the method if there is a need to use other turn icon drawables than the default icons supplied.

Properties

Link copied to clipboard
var turnIconResources: TurnIconResources