Added in API level 28

ImageDecoder.OnHeaderDecodedListener


public static interface ImageDecoder.OnHeaderDecodedListener



Interface for changing the default settings of a decode.

Supply an instance to decodeDrawable or decodeBitmap, which will call onHeaderDecoded (in the same thread) once the size is known. The implementation of onHeaderDecoded can then change the decode settings as desired.

Summary

Public methods

abstract void onHeaderDecoded(ImageDecoder decoder, ImageDecoder.ImageInfo info, ImageDecoder.Source source)

Called by ImageDecoder when the header has been decoded and the image size is known.

Public methods

onHeaderDecoded

Added in API level 28
public abstract void onHeaderDecoded (ImageDecoder decoder, 
                ImageDecoder.ImageInfo info, 
                ImageDecoder.Source source)

Called by ImageDecoder when the header has been decoded and the image size is known.