public static class

ImageDecoderConfig.Builder

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.decoder.ImageDecoderConfig.Builder

Summary

Public Constructors
Builder()
Public Methods
ImageDecoderConfig.Builder addDecodingCapability(ImageFormat imageFormat, ImageFormat.FormatChecker imageFormatChecker, ImageDecoder decoder)
Add a new decoding capability for a new image format.
ImageDecoderConfig build()
ImageDecoderConfig.Builder overrideDecoder(ImageFormat imageFormat, ImageDecoder decoder)
Use a different decoder for an existing image format.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public ImageDecoderConfig.Builder addDecodingCapability (ImageFormat imageFormat, ImageFormat.FormatChecker imageFormatChecker, ImageDecoder decoder)

Add a new decoding capability for a new image format.

Parameters
imageFormat the new image format
imageFormatChecker the format checker that can determine the new image format
decoder the decoder that can decode the new image format
Returns
  • the builder

public ImageDecoderConfig build ()

public ImageDecoderConfig.Builder overrideDecoder (ImageFormat imageFormat, ImageDecoder decoder)

Use a different decoder for an existing image format. This can be used for example to set a custom decoder for any of the DefaultImageFormats

Parameters
imageFormat the existing image format
decoder the decoder to use
Returns
  • the builder