Interface BitmapLoader
-
- All Known Implementing Classes:
DataSourceBitmapLoader
@Deprecated public interface BitmapLoader
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Loads images.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ListenableFuture<Bitmap>
decodeBitmap(byte[] data)
Deprecated.Decodes an image from compressed binary data.ListenableFuture<Bitmap>
loadBitmap(Uri uri)
Deprecated.Loads an image fromuri
.default ListenableFuture<Bitmap>
loadBitmapFromMetadata(MediaMetadata metadata)
Deprecated.Loads an image fromMediaMetadata
.
-
-
-
Method Detail
-
decodeBitmap
ListenableFuture<Bitmap> decodeBitmap(byte[] data)
Deprecated.Decodes an image from compressed binary data.
-
loadBitmap
ListenableFuture<Bitmap> loadBitmap(Uri uri)
Deprecated.Loads an image fromuri
.
-
loadBitmapFromMetadata
@Nullable default ListenableFuture<Bitmap> loadBitmapFromMetadata(MediaMetadata metadata)
Deprecated.Loads an image fromMediaMetadata
. Returns null ifmetadata
doesn't contain bitmap information.By default, the method will try to decode an image from
MediaMetadata.artworkData
if it is present. Otherwise, the method will try to load an image fromMediaMetadata.artworkUri
if it is present. The method will return null if neitherMediaMetadata.artworkData
norMediaMetadata.artworkUri
is present.
-
-