MapboxSignboardApi

class MapboxSignboardApi @JvmOverloads() constructor(accessToken: String, parser: SvgToBitmapParser, options: MapboxSignboardOptions)

Mapbox Signboard Api allows you to generate signboard for select maneuvers. By default uses the MapboxExternalFileResolver. Check out MapboxExternalFileResolver.resolveFont to know how css style's fonts are treated

Constructors

MapboxSignboardApi
Link copied to clipboard
fun MapboxSignboardApi(accessToken: String, applicationContext: Context, options: MapboxSignboardOptions = MapboxSignboardOptions.Builder().build())
MapboxSignboardApi
Link copied to clipboard
fun MapboxSignboardApi(accessToken: String, parser: SvgToBitmapParser, options: MapboxSignboardOptions = MapboxSignboardOptions.Builder().build())

Functions

cancelAll
Link copied to clipboard
fun cancelAll()
Invoke the method to cancel all ongoing requests to generate a signboard.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
generateSignboard
Link copied to clipboard
fun generateSignboard(instructions: BannerInstructions, consumer: MapboxNavigationConsumer<Expected<SignboardError, SignboardValue>>)
The method takes in BannerInstructions and generates a signboard based on the presence of BannerComponents of type BannerComponents.GUIDANCE_VIEW and subType BannerComponents.SIGNBOARD
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String