Package coil.decode

Types

GifDecoder
Link copied to clipboard
class GifDecoder @JvmOverloads() constructor(source: ImageSource, options: Options, enforceMinimumFrameDelay: Boolean) : Decoder
A Decoder that uses Movie to decode GIFs.
ImageDecoderDecoder
Link copied to clipboard
@RequiresApi(value = 28)
class ImageDecoderDecoder @JvmOverloads() constructor(source: ImageSource, options: Options, enforceMinimumFrameDelay: Boolean) : Decoder
A Decoder that uses ImageDecoder to decode GIFs, animated WebPs, and animated HEIFs.

Functions

isAnimatedHeif
Link copied to clipboard
fun DecodeUtils.isAnimatedHeif(source: BufferedSource): Boolean
Return 'true' if the source contains an animated HEIF image sequence.
isAnimatedWebP
Link copied to clipboard
fun DecodeUtils.isAnimatedWebP(source: BufferedSource): Boolean
Return 'true' if the source contains an animated WebP image.
isGif
Link copied to clipboard
fun DecodeUtils.isGif(source: BufferedSource): Boolean
Return 'true' if the source contains a GIF image.
isHeif
Link copied to clipboard
fun DecodeUtils.isHeif(source: BufferedSource): Boolean
Return 'true' if the source contains an HEIF image.
isWebP
Link copied to clipboard
fun DecodeUtils.isWebP(source: BufferedSource): Boolean
Return 'true' if the source contains a WebP image.