MapboxDesignedShield

class MapboxDesignedShield : RouteShield

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

Functions

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

Invoke the method to compare two shields based on shield data

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.MapboxDesignedShield.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 mapboxShield: MapboxShield

snippet of shield information associated with route

Link copied to clipboard
val shieldSprite: ShieldSprite

a sprite associated with the mapboxShield that would help in rendering the byteArray

Link copied to clipboard
val url: String

used to download the shield