STWishList
public final class STWishList : STFeature
This class implements the wishlist feature
Info:
The shared instance allows to retrieve, add and remove user’s wishes for a content or a track
-
Get the shared instance of STWishList
Throws
Will throw if your plan doesn’t include this featureDeclaration
Swift
public static func getInstance() throws -> STWishList
Return Value
Return the shared instance of STWishList
-
@Observable The list of wished contents
Declaration
Swift
@Observable public var contents: [STContentWish] { get set }
-
@Observable The list of wished tracks
Declaration
Swift
@Observable public var tracks: [STTrackWish] { get set }
-
Append the list of contents with one track
Declaration
Swift
public func add(content: STContentWish)
Parameters
content
Element to add
-
Append the list of tracks with one track
Declaration
Swift
public func add(track: STTrackWish)
Parameters
track
Element to add
-
Remove in the list of contents the given track
Declaration
Swift
public func remove(content: STContentWish)
Parameters
track
Element to remove
-
Remove in the list of tracks the given track
Declaration
Swift
public func remove(track: STTrackWish)
Parameters
track
Element to remove