Factory

class Factory(maxCacheableAnimationBytes: Long = DEFAULT_MAX_CACHEABLE_ANIMATION_BYTES) : Decoder.Factory

maxCacheableAnimationBytes: animations whose decoded pixel bytes (frames × width × height × 4) fit under this threshold are marked shareable, so Coil's memory cache keeps them and revisits skip the re-decode entirely. Animations above it stay unshareable (decode again from the disk cache on revisit) so a single huge GIF cannot evict everything else. 0 restores the old always-skip behavior; Long.MAX_VALUE caches unconditionally.

Constructors

Link copied to clipboard
constructor(maxCacheableAnimationBytes: Long = DEFAULT_MAX_CACHEABLE_ANIMATION_BYTES)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun create(result: SourceFetchResult, options: Options, imageLoader: ImageLoader): Decoder?