PlayListEventsListener
@objc(LwayvePlayListEventsListener)
public protocol PlayListEventsListener : AnyObject
This protocol contains methods for handling playlist updates.
-
This method is called each time the playlist has been updated.
Declaration
Swift
@objc optional func playlistDidUpdate(_ playlist: Playlist?, forUserContext userContext: UserContext)
Parameters
playlist
The object that contains additional information about the updated playlist.
userContext
UserContext of updated playlist
-
This method it called when last track of the playlist has finished playing
Declaration
Swift
@objc optional func playlistDidPlayToEnd(_ playlist: Playlist?)
Parameters
playlist
The playlist that has been finished playing
-
The method is called when new content update info changes
Seealso
ContentUpdateType
Declaration
Swift
@objc optional func contentUpdateInfoDidChange(_ updateInfo: ContentUpdateInfo)
Parameters
updateInfo
indicates the type of update.