Cache Utils
class CacheUtils
Content copied to clipboard
Functions
getCacheCount
Link copied to clipboard
getCacheSize
Link copied to clipboard
getDrawable
Link copied to clipboard
open fun getDrawable(@NonNull() key: String, defaultValue: Drawable): Drawable
Content copied to clipboard
getInstance
Link copied to clipboard
open fun getInstance(@NonNull() cacheDir: File, maxSize: Long, maxCount: Int): CacheUtils
Content copied to clipboard
Return the single CacheUtils instance.
open fun getInstance(cacheName: String, maxSize: Long, maxCount: Int): CacheUtils
Content copied to clipboard
Return the single CacheUtils instance.
getJSONArray
Link copied to clipboard
open fun getJSONArray(@NonNull() key: String, defaultValue: JSONArray): JSONArray
Content copied to clipboard
getJSONObject
Link copied to clipboard
open fun getJSONObject(@NonNull() key: String, defaultValue: JSONObject): JSONObject
Content copied to clipboard
getParcelable
Link copied to clipboard
open fun <T> getParcelable(@NonNull() key: String, @NonNull() creator: Parcelable.Creator<T>): T
Content copied to clipboard
open fun <T> getParcelable(@NonNull() key: String, @NonNull() creator: Parcelable.Creator<T>, defaultValue: T): T
Content copied to clipboard
getSerializable
Link copied to clipboard
put
Link copied to clipboard