Overview of Spotify App Remote SDK components
masterThe SDK is structured around several key interfaces and models that act as an entry point to the Spotify app:
Core Interfaces
SpotifyAppRemote: The primary entry point for all interactions. It provides access to specialized APIs likePlayerApiandImagesApi.Connector: A component used to receive an instance ofSpotifyAppRemote.
Specialized APIs
PlayerApi: Used for playback commands (play by URI, resume/pause, shuffle) and subscribing toPlayerStateandPlayerContextupdates.UserApi: Used to check user capabilities (e.g., if they can play on-demand) and manage content in the user's library.ImagesApi: Used to download cover art via URI.ContentApi: Used to retrieve lists of content.ConnectApi: Used to control which device the Spotify app should play music on.
Data Models
PlayerState: Provides information on the current track, playback status (playing/paused), current position, and if the track is in the user's library.PlayerContext: Provides metadata about the current context, such as the title of the playing album or playlist.Album,Artist,Track: Standard metadata models.