> Documentation index: https://developer.android.com/reference/llms.txt

# UriOnlyBitmapLoader

Artifact: [androidx.media3:media3-test-utils](https://developer.android.com/jetpack/androidx/releases/media3.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/media3/test/utils/FakeBitmapLoader.kt+class:androidx.media3.test.utils.UriOnlyBitmapLoader)

*** ** * ** ***


```
@UnstableApi
fun interface UriOnlyBitmapLoader : BitmapLoader
```

<br />

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|
| `open ListenableFuture<Bitmap>` | `decodeBitmap(data: ByteArray)` Decodes an image from compressed binary data. |
| `open Boolean` | `supportsMimeType(mimeType: String)` Returns whether the given `mimeType` is supported. |

### Inherited functions

From [androidx.media3.common.util.BitmapLoader](https://developer.android.com/reference/kotlin/androidx/media3/common/util/BitmapLoader.md.txt) `ListenableFuture<Bitmap>` `loadBitmap(uri: Uri)`

Loads an image from `uri`.
`ListenableFuture<Bitmap>?` `loadBitmapFromMetadata(metadata: MediaMetadata)`

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.