ImageAssetLoader
@UnstableApi
public final class ImageAssetLoader implements AssetLoader
An AssetLoader implementation that loads images into Bitmap instances.
Supports the image formats listed here except from GIFs, which could exhibit unexpected behavior.
Summary
Nested types |
|---|
public final class ImageAssetLoader.Factory implements AssetLoader.FactoryAn |
Public methods |
|
|---|---|
ImmutableMap<Integer, String> |
Return the used decoders' names. |
int |
@Transformer.ProgressStateReturns the current |
void |
release()Stops loading data and releases all resources associated with the asset loader. |
void |
start()Starts the asset loader. |
Inherited Constants |
||||
|---|---|---|---|---|
|
Public methods
getDecoderNames
public ImmutableMap<Integer, String> getDecoderNames()
Return the used decoders' names.
| Returns | |
|---|---|
ImmutableMap<Integer, String> |
The decoders' names keyed by |
getProgress
@Transformer.ProgressState
public int getProgress(ProgressHolder progressHolder)
Returns the current Transformer.ProgressState and updates progressHolder with the current progress if it is available.
| Parameters | |
|---|---|
ProgressHolder progressHolder |
A |
| Returns | |
|---|---|
int |
release
public void release()
Stops loading data and releases all resources associated with the asset loader.