AbstractSpotifyBroadcastReceiver

If you are developing an Android application and want to know what is happening in the Spotify app, you can subscribe to broadcast notifications from it. The Spotify app can posts sticky media broadcast notifications that can be read by any app on the same Android device. The media notifications contain information about what is currently being played in the Spotify App, as well as the playback position and the playback status of the app.

Note that media notifications need to be enabled manually in the Spotify app

You need to extend this class and register it, whether through the manifest or fragment/activity to receive notifications, as well as overriding onPlaybackStateChanged, onQueueChanged, and/or onMetadataChanged.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A metadata change intent is sent when a new track starts playing.

Link copied to clipboard

A playback state change is sent whenever the user presses play/pause, or when seeking the track position.

Link copied to clipboard

A queue change is sent whenever the play queue is changed.

Link copied to clipboard
open override fun onReceive(context: Context, intent: Intent)
Link copied to clipboard
open fun peekService(p0: Context, p1: Intent): IBinder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setResult(p0: Int, p1: String, p2: Bundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard