getBitmap

open fun getBitmap(@NonNull() key: String): Bitmap

Return the bitmap in cache.

Return

the bitmap if cache exists or null otherwise

Parameters

key

The key of cache.

open fun getBitmap(@NonNull() key: String, defaultValue: Bitmap): Bitmap

Return the bitmap in cache.

Return

the bitmap if cache exists or defaultValue otherwise

Parameters

key

The key of cache.

defaultValue

The default value if the cache doesn't exist.