MapboxDesignedShield

class MapboxDesignedShield : RouteShield

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

Functions

compareWith
Link copied to clipboard
fun compareWith(other: MapboxShield?): Boolean
Invoke the method to compare two shields based on shield data
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.MapboxDesignedShield.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
mapboxShield
Link copied to clipboard
val mapboxShield: MapboxShield
snippet of shield information associated with route
shieldSprite
Link copied to clipboard
val shieldSprite: ShieldSprite
a sprite associated with the mapboxShield that would help in rendering the byteArray
url
Link copied to clipboard
val url: String
used to download the shield