SPTAppRemoteImageAPI Protocol Reference

Conforms to NSObject
Declared in SPTAppRemoteImageAPI.h

Overview

API for fetching image data from the Spotify app

– fetchImageForItem:withSize:callback: required method

Fetch an image with the given ID from the Spotify app.

- (void)fetchImageForItem:(id<SPTAppRemoteImageRepresentable>)imageRepresentable withSize:(CGSize)imageSize callback:(nullable SPTAppRemoteCallback)callback

Parameters

imageRepresentable

The item containing the ID of the image to fetch.

imageSize

The size of the image to fetch.

callback

On success result will be an instance of UIImage On error result will be nil and error set

Declared In

SPTAppRemoteImageAPI.h