BitmapLoader
@UnstableApi
interface BitmapLoader
BitmapLoader |
This interface is deprecated. Use |
CacheBitmapLoader |
A |
DataSourceBitmapLoader |
A |
SimpleBitmapLoader |
This class is deprecated. Use |
SizeLimitedBitmapLoader |
A |
Loads images.
Summary
Public functions |
|
|---|---|
ListenableFuture<Bitmap!>! |
decodeBitmap(data: ByteArray!)Decodes an image from compressed binary data. |
ListenableFuture<Bitmap!>! |
loadBitmap(uri: Uri!)Loads an image from |
ListenableFuture<Bitmap!>? |
loadBitmapFromMetadata(metadata: MediaMetadata!)Loads an image from |
Boolean |
supportsMimeType(mimeType: String!)Returns whether the given |
Public functions
decodeBitmap
fun decodeBitmap(data: ByteArray!): ListenableFuture<Bitmap!>!
Decodes an image from compressed binary data.
loadBitmapFromMetadata
fun loadBitmapFromMetadata(metadata: MediaMetadata!): ListenableFuture<Bitmap!>?
Loads an image from MediaMetadata. Returns null if metadata doesn't contain bitmap information.
By default, the method will try to decode an image from artworkData if it is present. Otherwise, the method will try to load an image from artworkUri if it is present. The method will return null if neither artworkData nor artworkUri is present.
supportsMimeType
fun supportsMimeType(mimeType: String!): Boolean
Returns whether the given mimeType is supported.