BytesOnlyBitmapLoader


@UnstableApi
public fun interface BytesOnlyBitmapLoader extends BitmapLoader


A BitmapLoader that only implements decodeBitmap, supporting all MIME types and throwing UnsupportedOperationException from loadBitmap.

Summary

Public methods

default @NonNull ListenableFuture<@NonNull Bitmap>

Loads an image from uri.

default boolean

Returns whether the given mimeType is supported.

Inherited methods

From androidx.media3.common.util.BitmapLoader
abstract @NonNull ListenableFuture<@NonNull Bitmap>
decodeBitmap(@NonNull byte[] data)

Decodes an image from compressed binary data.

default @Nullable ListenableFuture<@NonNull Bitmap>

Loads an image from MediaMetadata.

Public methods

loadBitmap

default @NonNull ListenableFuture<@NonNull Bitmap> loadBitmap(@NonNull Uri uri)

Loads an image from uri.

supportsMimeType

default boolean supportsMimeType(@NonNull String mimeType)

Returns whether the given mimeType is supported.