Engine

Responsible for starting loads and managing active and cached resources.

Constructors

Link copied to clipboard
open fun Engine(    memoryCache: MemoryCache,     diskCacheFactory: DiskCache.Factory,     diskCacheExecutor: GlideExecutor,     sourceExecutor: GlideExecutor,     sourceUnlimitedExecutor: GlideExecutor,     animationExecutor: GlideExecutor,     isActiveResourceRetentionAllowed: Boolean)

Types

Link copied to clipboard
open class LoadStatus
Allows a request to indicate it no longer is interested in a given load.

Functions

Link copied to clipboard
open fun clearDiskCache()
Link copied to clipboard
open fun <R> load(    glideContext: GlideContext,     model: Any,     signature: Key,     width: Int,     height: Int,     resourceClass: Class<out Any>,     transcodeClass: Class<R>,     priority: Any,     diskCacheStrategy: DiskCacheStrategy,     transformations: Map<Class<out Any>, Transformation<out Any>>,     isTransformationRequired: Boolean,     isScaleOnlyOrNoTransform: Boolean,     options: Options,     isMemoryCacheable: Boolean,     useUnlimitedSourceExecutorPool: Boolean,     useAnimationPool: Boolean,     onlyRetrieveFromCache: Boolean,     cb: ResourceCallback,     callbackExecutor: Executor): Engine.LoadStatus
Starts a load for the given arguments.
Link copied to clipboard
open fun onEngineJobCancelled(engineJob: EngineJob<out Any>, key: Key)
Link copied to clipboard
open fun onEngineJobComplete(    engineJob: EngineJob<out Any>,     key: Key,     resource: EngineResource<out Any>)
Link copied to clipboard
open fun onResourceReleased(cacheKey: Key, resource: EngineResource<out Any>)
Link copied to clipboard
open fun onResourceRemoved(resource: Resource<out Any>)
Link copied to clipboard
open fun release(resource: Resource<out Any>)
Link copied to clipboard
open fun shutdown()