Abstract Spotify Broadcast Receiver
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
AbstractSpotifyBroadcastReceiver
Link copied to clipboard
fun AbstractSpotifyBroadcastReceiver()
Content copied to clipboard
Types
Functions
abortBroadcast
Link copied to clipboard
fun abortBroadcast()
Content copied to clipboard
clearAbortBroadcast
Link copied to clipboard
fun clearAbortBroadcast()
Content copied to clipboard
getAbortBroadcast
Link copied to clipboard
getDebugUnregister
Link copied to clipboard
getResultCode
Link copied to clipboard
getResultData
Link copied to clipboard
getResultExtras
Link copied to clipboard
goAsync
Link copied to clipboard
isInitialStickyBroadcast
Link copied to clipboard
isOrderedBroadcast
Link copied to clipboard
onMetadataChanged
Link copied to clipboard
onPlaybackStateChanged
Link copied to clipboard
onQueueChanged
Link copied to clipboard
peekService
Link copied to clipboard
setDebugUnregister
Link copied to clipboard
setOrderedHint
Link copied to clipboard
setResultCode
Link copied to clipboard
setResultData
Link copied to clipboard
setResultExtras
Link copied to clipboard
Sources
android source
Link copied to clipboard