MapboxLegacyShield

class MapboxLegacyShield : RouteShield

Type representation of RouteShield which is to be used when requesting mapbox legacy shields.

Functions

Link copied to clipboard
fun compareWith(other: String?): Boolean

Invoke the method to compare two legacy shields based on shield url

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

Regenerate whenever a change is made

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

Regenerate whenever a change is made

Link copied to clipboard
open override fun toBitmap(resources: Resources, desiredHeight: Int?): Bitmap?

Invoke the method to convert RouteShield.MapboxLegacyShield.byteArray to Bitmap.

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

Returns a string representation of the object.

Properties

Link copied to clipboard
val byteArray: ByteArray

shield image returned in the form of svg wrapped in a ByteArray

Link copied to clipboard
val initialUrl: String

the original legacy url obtained from directions response pointing to a shield. This initial url can be used to match the url from the maneuver object.

Link copied to clipboard
val url: String

used to download the shield