SimpleBitmapLoader


@UnstableApi
public final class SimpleBitmapLoader implements 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 methods

ListenableFuture<Bitmap>
decodeBitmap(byte[] data)

Decodes an image from compressed binary data.

ListenableFuture<Bitmap>

Loads an image from uri.

boolean

Returns whether the given mimeType is supported.

Public constructors

SimpleBitmapLoader

public SimpleBitmapLoader()

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

SimpleBitmapLoader

public SimpleBitmapLoader(ExecutorService executorService)

Creates an instance that delegates loading tasks to the executorService.

Public methods

decodeBitmap

public ListenableFuture<BitmapdecodeBitmap(byte[] data)

Decodes an image from compressed binary data.

loadBitmap

public ListenableFuture<BitmaploadBitmap(Uri uri)

Loads an image from uri.

supportsMimeType

public boolean supportsMimeType(String mimeType)

Returns whether the given mimeType is supported.