Spotify Playback State Changed Data
data class SpotifyPlaybackStateChangedData(playing: Boolean, positionInMs: Int, timeSentInMs: Long) : SpotifyBroadcastEventData
Content copied to clipboard
A playback state change is sent whenever the user presses play/pause, or when seeking the track position. It uses the intent action com.spotify.music.playbackstatechanged.
Parameters
playing
True if playing, false if paused.
positionInMs
The current playback position in milliseconds.
timeSentInMs
When the notification was sent.
Constructors
SpotifyPlaybackStateChangedData
Link copied to clipboard
fun SpotifyPlaybackStateChangedData(playing: Boolean, positionInMs: Int, timeSentInMs: Long)
Content copied to clipboard
True if playing, false if paused.
Properties
positionInMs
Link copied to clipboard
timeSentInMs
Link copied to clipboard
type
Link copied to clipboard
Sources
android source
Link copied to clipboard