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