Class DefaultOnHeaderDecodedListener

  • All Implemented Interfaces:
    android.graphics.ImageDecoder.OnHeaderDecodedListener

    @RequiresApi(api=28)
    public final class DefaultOnHeaderDecodedListener
    extends java.lang.Object
    implements android.graphics.ImageDecoder.OnHeaderDecodedListener
    Downsamples, decodes, and rotates images according to their exif orientation using ImageDecoder.

    Obeys all options in Downsampler except for Downsampler.FIX_BITMAP_SIZE_TO_REQUESTED_DIMENSIONS.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onHeaderDecoded​(android.graphics.ImageDecoder decoder, android.graphics.ImageDecoder.ImageInfo info, android.graphics.ImageDecoder.Source source)  
      • Methods inherited from class java.lang.Object

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

      • DefaultOnHeaderDecodedListener

        public DefaultOnHeaderDecodedListener​(int requestedWidth,
                                              int requestedHeight,
                                              @NonNull
                                              Options options)
    • Method Detail

      • onHeaderDecoded

        public void onHeaderDecoded​(@NonNull
                                    android.graphics.ImageDecoder decoder,
                                    @NonNull
                                    android.graphics.ImageDecoder.ImageInfo info,
                                    @NonNull
                                    android.graphics.ImageDecoder.Source source)
        Specified by:
        onHeaderDecoded in interface android.graphics.ImageDecoder.OnHeaderDecodedListener