BytesOnlyBitmapLoader


@UnstableApi
fun interface BytesOnlyBitmapLoader : BitmapLoader


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

Summary

Public functions

open ListenableFuture<Bitmap>

Loads an image from uri.

open Boolean

Returns whether the given mimeType is supported.

Inherited functions

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

Decodes an image from compressed binary data.

ListenableFuture<Bitmap>?

Loads an image from MediaMetadata.

Public functions

loadBitmap

open fun loadBitmap(uri: Uri): ListenableFuture<Bitmap>

Loads an image from uri.

supportsMimeType

open fun supportsMimeType(mimeType: String): Boolean

Returns whether the given mimeType is supported.