-
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classImageDecoderDecoder.Factory
-
Constructor Summary
Constructors Constructor Description ImageDecoderDecoder(ImageSource source, Options options, Boolean enforceMinimumFrameDelay)ImageDecoderDecoder(ImageSource source, Options options)
-
Method Summary
Modifier and Type Method Description DecodeResultdecode()-
-
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()
-
-
-
-