UriOnlyBitmapLoader


@UnstableApi
fun interface UriOnlyBitmapLoader : BitmapLoader


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

Summary

Public functions

open ListenableFuture<Bitmap>

Decodes an image from compressed binary data.

open Boolean

Returns whether the given mimeType is supported.

Inherited functions

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

Loads an image from uri.

ListenableFuture<Bitmap>?

Loads an image from MediaMetadata.

Public functions

decodeBitmap

open fun decodeBitmap(data: ByteArray): ListenableFuture<Bitmap>

Decodes an image from compressed binary data.

supportsMimeType

open fun supportsMimeType(mimeType: String): Boolean

Returns whether the given mimeType is supported.