MapboxTurnIconsApi

class MapboxTurnIconsApi(turnIconResources: TurnIconResources)

An API for generating turn icon drawable resource references.

Parameters

turnIconResources

a TurnIconResources reference

Constructors

MapboxTurnIconsApi
Link copied to clipboard
fun MapboxTurnIconsApi(turnIconResources: TurnIconResources)
a TurnIconResources reference

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
generateTurnIcon
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.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
updateResources
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

turnIconResources
Link copied to clipboard
var turnIconResources: TurnIconResources
a TurnIconResources reference