getSerializable

open fun getSerializable(@NonNull() key: String): Any

Return the serializable in cache.

Return

the bitmap if cache exists or null otherwise

Parameters

key

The key of cache.

open fun getSerializable(@NonNull() key: String, defaultValue: Any): Any

Return the serializable 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.