AnimatedImageDecoder

@RequiresApi(value = 28)
class AnimatedImageDecoder(source: ImageSource, options: Options, enforceMinimumFrameDelay: Boolean = SDK_INT < 34) : Decoder

A Decoder that uses ImageDecoder to decode GIFs, animated WebPs, and animated HEIFs.

NOTE: Animated HEIF files are only supported on API 30 and above.

Parameters

enforceMinimumFrameDelay

If true, rewrite a GIF's frame delay to a default value if it is below a threshold. See https://github.com/coil-kt/coil/issues/540 for more info.

Constructors

Link copied to clipboard
constructor(source: ImageSource, options: Options, enforceMinimumFrameDelay: Boolean = SDK_INT < 34)

Types

Link copied to clipboard
class Factory(enforceMinimumFrameDelay: Boolean = SDK_INT < 34) : Decoder.Factory

Functions

Link copied to clipboard
open suspend override fun decode(): DecodeResult