PlaylistControlProtocol
@objc(LwayvePlaylistControlProtocol)
public protocol PlaylistControlProtocol
This protocol provides an interface for controlling the Contextual Audio Experience playlist.
-
Refresh the playlist based on the current context of playlist builder.
Declaration
Swift
func refreshPlaylist() -
Re-request the Contextual Audio Experience from the server.
Declaration
Swift
func forceReloadExperience() -
The list of items in the playlist.
Declaration
Swift
var generatedPlaylist: Playlist? { get } -
The list of audio tracks in the queue, including the currently playing audio track (if any).
Declaration
Swift
var audioQueue: [AudioTrack] { get } -
The list of unplayed audio tracks.
Declaration
Swift
var unplayedTracksQueue: [AudioTrack] { get } -
The list of played audio tracks. The last audio track in the list is the most recently played one.
Declaration
Swift
var playedTracksHistory: [AudioTrack] { get } -
The list of identifiers for the played audio tracks.
Declaration
Swift
var playedTracksIds: Set<String> { get } -
Clear the history of played audio tracks.
Declaration
Swift
func clearPlayedItems() -
Indicates if current playlist contains new content.
Declaration
Swift
var contentUpdateInfo: ContentUpdateInfo { get }
View on GitHub
PlaylistControlProtocol Protocol Reference