UriOnlyBitmapLoader


@UnstableApi
public fun interface UriOnlyBitmapLoader extends BitmapLoader


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

Summary

Public methods

default @NonNull ListenableFuture<@NonNull Bitmap>
decodeBitmap(@NonNull byte[] data)

Decodes an image from compressed binary data.

default boolean

Returns whether the given mimeType is supported.

Inherited methods

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

Loads an image from uri.

default @Nullable ListenableFuture<@NonNull Bitmap>

Loads an image from MediaMetadata.

Public methods

decodeBitmap

default @NonNull ListenableFuture<@NonNull Bitmap> decodeBitmap(@NonNull byte[] data)

Decodes an image from compressed binary data.

supportsMimeType

default boolean supportsMimeType(@NonNull String mimeType)

Returns whether the given mimeType is supported.