ExternallyLoadedImageDecoder.Factory


public final class ExternallyLoadedImageDecoder.Factory implements ImageDecoder.Factory


A ImageDecoder.Factory for ExternallyLoadedImageDecoder instances.

Summary

Public constructors

Creates the factory.

Public methods

ExternallyLoadedImageDecoder

Creates a new ImageDecoder.

int

Returns the highest Capabilities of the factory's decoders for the given .

Inherited Constants

From androidx.media3.exoplayer.image.ImageDecoder.Factory
static final ImageDecoder.Factory

Default implementation of an image decoder factory.

Public constructors

Factory

public Factory(ExternallyLoadedImageDecoder.BitmapResolver bitmapResolver)

Creates the factory.

Parameters
ExternallyLoadedImageDecoder.BitmapResolver bitmapResolver

The BitmapResolver to resolve the ExternalImageRequest to a Bitmap.

Public methods

createImageDecoder

public ExternallyLoadedImageDecoder createImageDecoder()

Creates a new ImageDecoder.

supportsFormat

@RendererCapabilities.Capabilities
public int supportsFormat(Format format)

Returns the highest Capabilities of the factory's decoders for the given .

Parameters
Format format

The Format.

Returns
int

The Capabilities of the decoders the factory can instantiate for this format.