SimpleBitmapLoader


@UnstableApi
public final class SimpleBitmapLoader implements BitmapLoader


Summary

Public constructors

This method is deprecated. Deprecated in Java

This method is deprecated. Deprecated in Java

Public methods

ListenableFuture<Bitmap>
decodeBitmap(byte[] data)

This method is deprecated. Deprecated in Java

ListenableFuture<Bitmap>

This method is deprecated. Deprecated in Java

boolean

This method is deprecated. Deprecated in Java

Inherited methods

From androidx.media3.common.util.BitmapLoader
@Nullable ListenableFuture<Bitmap>

This method is deprecated. Deprecated in Java

Public constructors

SimpleBitmapLoader

public SimpleBitmapLoader()

Creates an instance that delegates all load tasks to a single-thread executor service shared between instances.

SimpleBitmapLoader

public SimpleBitmapLoader(ExecutorService executorService)

Creates an instance that delegates loading tasks to the executorService.

Public methods

decodeBitmap

public ListenableFuture<Bitmap> decodeBitmap(byte[] data)

Decodes an image from compressed binary data.

loadBitmap

public ListenableFuture<Bitmap> loadBitmap(Uri uri)

Loads an image from uri.

supportsMimeType

public boolean supportsMimeType(String mimeType)

Returns whether the given mimeType is supported.