sdk-maps / com.tomtom.online.sdk.map / Icon

Icon

open class Icon

Class that represents image on the map. It can be used e.g. as a visual representation of a marker.

Types

Factory

open class Factory

Factory class used to create an Icon instance.

Constructors

<init>

Icon(name: String!, width: Int, height: Int, scale: Double, data: ByteArray!, isAnimated: Boolean)

Constructor for drawables.

Functions

getData

open fun getData(): ByteArray?

Get icon image as byte array.

getHeight

open fun getHeight(): Int

Get icon image height.

getScale

open fun getScale(): Double

Get icon scale.

getWidth

open fun getWidth(): Int

Get icon image width.