SimpleBitmapLoader


@UnstableApi
class SimpleBitmapLoader : BitmapLoader


Summary

Public constructors

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

Creates an instance that delegates loading tasks to the executorService.

Public functions

ListenableFuture<Bitmap!>!

Decodes an image from compressed binary data.

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

Loads an image from uri.

Boolean

Returns whether the given mimeType is supported.

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!): 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.