GifDecoder

class GifDecoder(source: ImageSource, options: Options, enforceMinimumFrameDelay: Boolean = true) : Decoder

A Decoder that uses Movie to decode GIFs.

NOTE: Prefer using AnimatedImageDecoder on API 28 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 = true)

Types

Link copied to clipboard
class Factory(val enforceMinimumFrameDelay: Boolean = true) : Decoder.Factory

Functions

Link copied to clipboard
open suspend override fun decode(): <Error class: unknown class>