Package 

Class ImageDecoderDecoder

  • All Implemented Interfaces:
    coil.decode.Decoder

    @RequiresApi(value = 28) 
    public final class ImageDecoderDecoder
     implements 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.

    • Method Summary

      Modifier and Type Method Description
      DecodeResult decode()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageDecoderDecoder

        ImageDecoderDecoder(ImageSource source, Options options, Boolean enforceMinimumFrameDelay)
        Parameters:
        enforceMinimumFrameDelay - If true, rewrite a GIF's frame delay to a default value if it is below a threshold.
      • ImageDecoderDecoder

        ImageDecoderDecoder(ImageSource source, Options options)
    • Method Detail

      • decode

         DecodeResult decode()