Back to Fresco

ImageDecoderConfig.Builder

docs/javadoc/reference/com/facebook/imagepipeline/decoder/ImageDecoderConfig.Builder.html

3.6.013.7 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Exceptions

Packages | Classes

Summary: Ctors | Methods | Inherited Methods | [Expand All]

public static class

ImageDecoderConfig.Builder

extends Object

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

Summary

Public Constructors
Public Methods
ImageDecoderConfig.Builder
Add a new decoding capability for a new image format.
ImageDecoderConfig
ImageDecoderConfig.Builder
Use a different decoder for an existing image format.

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

|

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

+Generated by Doclava. +