MapboxLegacyShield

class MapboxLegacyShield : RouteShield

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

Functions

compareWith
Link copied to clipboard
fun compareWith(other: String?): Boolean
Invoke the method to compare two legacy shields based on shield url
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Regenerate whenever a change is made
hashCode
Link copied to clipboard
open override fun hashCode(): Int
Regenerate whenever a change is made
toBitmap
Link copied to clipboard
open override fun toBitmap(resources: Resources, desiredHeight: Int?): Bitmap?
Invoke the method to convert RouteShield.MapboxLegacyShield.byteArray to Bitmap.
toString
Link copied to clipboard
open override fun toString(): String
Returns a string representation of the object.

Properties

byteArray
Link copied to clipboard
val byteArray: ByteArray
shield image returned in the form of svg wrapped in a ByteArray
initialUrl
Link copied to clipboard
val initialUrl: String
the original legacy url obtained from directions response pointing to a shield.
url
Link copied to clipboard
val url: String
used to download the shield