SimpleBitmapLoader


@UnstableApi
class SimpleBitmapLoader : BitmapLoader


Summary

Public constructors

This function is deprecated. Deprecated in Java

This function is deprecated. Deprecated in Java

Public functions

ListenableFuture<Bitmap!>!

This function is deprecated. Deprecated in Java

ListenableFuture<Bitmap!>!
loadBitmap(uri: Uri!)

This function is deprecated. Deprecated in Java

Boolean

This function is deprecated. Deprecated in Java

Inherited functions

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

This function is deprecated. Deprecated in Java

Public constructors

SimpleBitmapLoader

SimpleBitmapLoader()

Creates an instance that delegates all load tasks to a single-thread executor service shared between instances.

SimpleBitmapLoader

SimpleBitmapLoader(executorService: ExecutorService!)

Creates an instance that delegates loading tasks to the executorService.

Public functions

decodeBitmap

fun decodeBitmap(data: ByteArray<Byte>!): ListenableFuture<Bitmap!>!

Decodes an image from compressed binary data.

loadBitmap

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

Loads an image from uri.

supportsMimeType

fun supportsMimeType(mimeType: String!): Boolean

Returns whether the given mimeType is supported.