Package 

Interface WebPDecodeListener

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onInfoDecoded(WebPInfo info) Called when the decoder has decoded information about the image.
      abstract Unit onFrameDecoded(Integer index, Long timestamp, Bitmap bitmap, Uri uri) Called when the decoder has decoded a frame of the image.
      • Methods inherited from class java.lang.Object

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

      • onInfoDecoded

         abstract Unit onInfoDecoded(WebPInfo info)

        Called when the decoder has decoded information about the image. Image information is decoded at the start of the decoding process.

        Parameters:
        info - The information about the image.
      • onFrameDecoded

         abstract Unit onFrameDecoded(Integer index, Long timestamp, Bitmap bitmap, Uri uri)

        Called when the decoder has decoded a frame of the image. Do not recycle bitmap as it is reused internally.

        Parameters:
        index - The index of the frame.
        timestamp - The timestamp of the frame.
        bitmap - The frame of the image.
        uri - Uri of the saved frame or Uri.EMPTY if the frame is not saved.