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 |
Public methods |
|
|---|---|
ListenableFuture<Bitmap> |
Decodes an image from compressed binary data. |
ListenableFuture<Bitmap> |
Loads an image from |
boolean |
Returns whether the given |
Inherited methods |
||
|---|---|---|
|
Public constructors
SimpleBitmapLoader
public SimpleBitmapLoader()Creates an instance that delegates all load tasks to a single-thread executor service shared between instances.
SimpleBitmapLoader
publicSimpleBitmapLoader(ExecutorService executorService)
Creates an instance that delegates loading tasks to the executorService.
Public methods
decodeBitmap
public ListenableFuture<Bitmap>decodeBitmap(byte[] data)
Decodes an image from compressed binary data.
supportsMimeType
public booleansupportsMimeType(String mimeType)
Returns whether the given mimeType is supported.