public interface ImagesApi
SpotifyAppRemote.getImagesApi()
.SpotifyAppRemote
Modifier and Type | Method and Description |
---|---|
CallResult<android.graphics.Bitmap> |
getImage(ImageUri imageUri)
Fetch an image from the Spotify app.
This method will call getImage(ImageUri, Image.Dimension) with Image.Dimension#LARGE .See Track.imageUri See Image.Dimension Introduced in com.spotify.protocol.client.RequiredFeatures#FEATURES_V1 |
CallResult<android.graphics.Bitmap> |
getImage(ImageUri imageUri,
Image.Dimension dimension)
Fetch an image from the Spotify app and specify the preferred size by dimension.
See Track.imageUri See Image.Dimension Introduced in com.spotify.protocol.client.RequiredFeatures#FEATURES_V3 |
CallResult<android.graphics.Bitmap> getImage(ImageUri imageUri)
getImage(ImageUri, Image.Dimension)
with Image.Dimension#LARGE
.Track.imageUri
Image.Dimension
com.spotify.protocol.client.RequiredFeatures#FEATURES_V1
imageUri
- the id of the image you want to fetchCallResult<android.graphics.Bitmap> getImage(ImageUri imageUri, Image.Dimension dimension)
Track.imageUri
Image.Dimension
com.spotify.protocol.client.RequiredFeatures#FEATURES_V3
imageUri
- the id of the image you want to fetchdimension
- predefined dimension