BitmapPool

interface BitmapPool

An interface for a pool that allows users to reuse android.graphics.Bitmap objects.

Functions

Link copied to clipboard
abstract fun clearMemory()
Removes all android.graphics.
Link copied to clipboard
abstract fun get(    width: Int,     height: Int,     config: Config): Bitmap
Returns a android.graphics.
Link copied to clipboard
abstract fun getDirty(    width: Int,     height: Int,     config: Config): Bitmap
Identical to get except that any returned android.graphics.
Link copied to clipboard
abstract fun getMaxSize(): Long
Returns the current maximum size of the pool in bytes.
Link copied to clipboard
abstract fun put(bitmap: Bitmap)
Adds the given android.graphics.
Link copied to clipboard
abstract fun setSizeMultiplier(sizeMultiplier: Float)
Multiplies the initial size of the pool by the given multiplier to dynamically and synchronously allow users to adjust the size of the pool.
Link copied to clipboard
abstract fun trimMemory(level: Int)
Reduces the size of the cache by evicting items based on the given level.

Inheritors

Link copied to clipboard
Link copied to clipboard