EngagementSDK
class EngagementSDK(clientId: String, val applicationContext: Context, errorDelegate: ErrorDelegate? = null, originURL: String = "https://cf-blast.livelikecdn.com", accessTokenDelegate: AccessTokenDelegate, dataStoreDelegate: DataStoreDelegate = DataStoreDelegateImpl(applicationContext)) : LiveLikeKotlin, IEngagement
This class to initialize the EngagementSDK. This is the entry point for SDK usage. This creates an instance of EngagementSDK.
Parameters
clientId
Client's id
applicationContext
The application context
Constructors
Link copied to clipboard
constructor(clientId: String, applicationContext: Context, errorDelegate: ErrorDelegate? = null, originURL: String = "https://cf-blast.livelikecdn.com", accessTokenDelegate: AccessTokenDelegate, dataStoreDelegate: DataStoreDelegate = DataStoreDelegateImpl(applicationContext))
Types
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun createChatSession(timeCodeGetter: TimeCodeGetter, errorDelegate: ErrorDelegate? = null, includeFilteredChatMessages: Boolean = false, sessionDispatcher: CoroutineDispatcher = Dispatchers.Default, uiDispatcher: CoroutineDispatcher = Dispatchers.Main, chatEnforceUniqueMessageCallback: Boolean = false): LiveLikeChatSession
Creates a chat session.
Link copied to clipboard
fun createContentSession(programId: String, errorDelegate: ErrorDelegate? = null, connectToDefaultChatRoom: Boolean = true, includeFilteredChatMessages: Boolean = false, chatEnforceUniqueMessageCallback: Boolean = false): LiveLikeContentSession
Creates a content session without sync.
fun createContentSession(programId: String, timecodeGetter: TimeCodeGetter, errorDelegate: ErrorDelegate? = null, connectToDefaultChatRoom: Boolean = true, includeFilteredChatMessages: Boolean = false, sessionDispatcher: CoroutineDispatcher = Dispatchers.Default, uiDispatcher: CoroutineDispatcher = Dispatchers.Main, chatEnforceUniqueMessageCallback: Boolean = false): LiveLikeContentSession
Creates a content session with sync.
Link copied to clipboard