Engine
open class Engine : EngineJobListener, MemoryCache.ResourceRemovedListener, EngineResource.ResourceListener
Content copied to clipboard
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)
Content copied to clipboard
Types
Functions
Link copied to clipboard
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
Content copied to clipboard
Starts a load for the given arguments.
Link copied to clipboard
Link copied to clipboard
open fun onEngineJobComplete( engineJob: EngineJob<out Any>, key: Key, resource: EngineResource<out Any>)
Content copied to clipboard
Link copied to clipboard
open fun onResourceReleased(cacheKey: Key, resource: EngineResource<out Any>)
Content copied to clipboard
Link copied to clipboard