SpotifyPlaybackStateChangedData

data class SpotifyPlaybackStateChangedData(val playing: Boolean, val positionInMs: Int, val timeSentInMs: Long) : SpotifyBroadcastEventData(source)

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

Link copied to clipboard
constructor(playing: Boolean, positionInMs: Int, timeSentInMs: Long)

Properties

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