TileDownloader

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun close()
Link copied to clipboard
suspend fun downloadTile(url: String): Bitmap?
Link copied to clipboard
suspend fun downloadTileBytes(url: String): ByteArray?

Downloads a tile and returns its bytes as sent by the server, or null on failure. Used to store tiles on disk without decoding and re-encoding them.