ContextControlProtocol
@objc(LwayveContextControlProtocol)
public protocol ContextControlProtocol
The protocol provides an additional interface for updating Contextual Audio Experience context and building an appropriate playlist.
-
Update user likes in a Contextual Audio Experience.
Declaration
Swift
@objc(setUserLikes:) func set(userLikes: [String])
Parameters
userLikes
The list of strings representing the updated user likes in the Contextual Audio Experience.
-
Add user likes to a Contextual Audio Experience.
Declaration
Swift
@objc(addUserLikes:) func add(userLikes: [String])
Parameters
userLikes
The list of strings representing the user likes to add to the Contextual Audio Experience.
-
Remove user likes from a Contextual Audio Experience.
Declaration
Swift
@objc(removeUserLikes:) func remove(userLikes: [String])
Parameters
userLikes
The list of strings representing the user likes to remove from the Contextual Audio Experience.
-
Update locations in a Contextual Audio Experience.
Declaration
Swift
@objc(setLocations:) func set(locations: [String])
Parameters
locations
The list of strings representing the updated locations in the Contextual Audio Experience.
-
Add locations to a Contextual Audio Experience.
Declaration
Swift
@objc(addLocations:) func add(locations: [String])
Parameters
locations
The list of strings representing the locations to be added to the Contextual Audio Experience.
-
Remove locations from a Contextual Audio Experience.
Declaration
Swift
@objc(removeLocations:) func remove(locations: [String])
Parameters
locations
The list of strings representing the locations to be removed from the Contextual Audio Experience.
-
Set Exclusive Tag
Declaration
Swift
var exclusiveTag: String? { get set }
-
The data object that contains the user context that is being used for generating the playlist.
Declaration
Swift
var currentUserContext: UserContext? { get }
-
Declaration
Swift
var timeOffset: TimeInterval { get }