DiskTileCache

class DiskTileCache(context: Context)(source)

Persistent disk cache for map tiles using DiskLruCache.

Stores up to 50MB of tile images in PNG format in the app's cache directory. Tiles persist across app restarts, reducing network usage on subsequent launches. Uses LRU eviction when cache size limit is reached.

Constructors

Link copied to clipboard
constructor(context: Context)

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)