ExternalPreferredCacheDiskCacheFactory

Creates an com.bumptech.glide.disklrucache.DiskLruCache based disk cache in the external disk cache directory, which falls back to the internal disk cache if no external storage is available. If ever fell back to the internal disk cache, will use that one from that moment on.

Images can be read by everyone when using external disk cache.

Constructors

Link copied to clipboard
open fun ExternalPreferredCacheDiskCacheFactory(context: Context)
Link copied to clipboard
open fun ExternalPreferredCacheDiskCacheFactory(context: Context, diskCacheSize: Long)
Link copied to clipboard
open fun ExternalPreferredCacheDiskCacheFactory(    context: Context,     diskCacheName: String,     diskCacheSize: Long)

Functions

Link copied to clipboard
open fun build(): DiskCache
Returns a new disk cache, or null if no disk cache could be created.

Properties

Link copied to clipboard
val DEFAULT_DISK_CACHE_DIR: String
Link copied to clipboard
val DEFAULT_DISK_CACHE_SIZE: Int
250 MB of cache.