Option
Defines available component (decoders, encoders, model loaders etc.) options with optional default values and the ability to affect the resource disk cache key used by RESOURCE.
Implementations must either be unique (usually declared as static final variables), or implement equals and hashCode.
Implementations can implement update to make sure that the disk cache key includes the specific option set.
Parameters
Types
Link copied to clipboard
An interface that updates a MessageDigest with the given value as part of a process to generate a disk cache key.
Functions
Link copied to clipboard
open fun <T> disk(key: String, cacheKeyUpdater: Option.CacheKeyUpdater<T>): Option<T>
Content copied to clipboard
Returns a new Option that uses the given to update disk cache keys.
open fun <T> disk( key: String, defaultValue: T, cacheKeyUpdater: Option.CacheKeyUpdater<T>): Option<T>
Content copied to clipboard
Returns a new Option that uses the given to update disk cache keys and provides the given value as the default value.
Link copied to clipboard
Updates the given MessageDigest used to construct a cache key with the given value using the com.bumptech.glide.load.Option.CacheKeyUpdater optionally provided in the constructor.