RouteShield

sealed class RouteShield

Data structure that holds information about route shield.

To convert the returned SVG ByteArray to a Bitmap use toBitmap.

Types

MapboxDesignedShield
Link copied to clipboard
class MapboxDesignedShield : RouteShield
Type representation of RouteShield which is to be used when requesting mapbox designed shields.
MapboxLegacyShield
Link copied to clipboard
class MapboxLegacyShield : RouteShield
Type representation of RouteShield which is to be used when requesting mapbox legacy shields.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toBitmap
Link copied to clipboard
abstract fun toBitmap(resources: Resources, desiredHeight: Int? = null): Bitmap?
Invoke the method to convert RouteShield.byteArray to Bitmap.
toString
Link copied to clipboard
open fun toString(): String

Properties

byteArray
Link copied to clipboard
val byteArray: ByteArray
shield image returned in the form of svg wrapped in a ByteArray
url
Link copied to clipboard
val url: String
used to download the shield

Inheritors

RouteShield
Link copied to clipboard
RouteShield
Link copied to clipboard