SpotifyMetadataChangedData

data class SpotifyMetadataChangedData(val playableUri: PlayableUri, val artistName: String, val albumName: String, val trackName: String, val trackLengthInSec: Int, val timeSentInMs: Long) : SpotifyBroadcastEventData(source)

A metadata change intent is sent when a new track starts playing. It uses the intent action com.spotify.music.metadatachanged.

Parameters

playableUri

A Spotify URI for the track or playable.

artistName

The track artist.

albumName

The album name.

trackName

The track name.

trackLengthInSec

Length of the track, in seconds.

timeSentInMs

When the notification was sent.

Constructors

Link copied to clipboard
constructor(playableUri: PlayableUri, artistName: String, albumName: String, trackName: String, trackLengthInSec: Int, timeSentInMs: Long)

Properties

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