TileCache

class TileCache(context: Context? = null)(source)

Two-level cache for map tiles: in-memory LRU cache backed by persistent disk cache.

Memory cache holds up to 1/8 of available heap memory for fast access. When tiles are evicted from memory, they are automatically written to disk cache. Disk cache stores up to 50MB of tiles to reduce network requests across app restarts.

Constructors

Link copied to clipboard
constructor(context: Context? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun close()
Link copied to clipboard
Link copied to clipboard
fun put(tile: TileCoordinate, bitmap: Bitmap)