put

fun put(tile: TileCoordinate, bitmap: Bitmap, bytes: ByteArray? = null)(source)

Puts the tile into the memory cache and the disk cache.

Parameters

bytes

The tile as sent by the server, stored on disk as is. If null, the bitmap is encoded as PNG for the disk cache.