Package 

Class AnimatedImageDecoder

  • All Implemented Interfaces:
    coil3.decode.Decoder

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

    • Constructor Summary

      Constructors 
      Constructor Description
      AnimatedImageDecoder(ImageSource source, Options options, Boolean enforceMinimumFrameDelay)
    • 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

      • AnimatedImageDecoder

        AnimatedImageDecoder(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.
    • Method Detail

      • decode

         DecodeResult decode()