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

Link copied to clipboard
object Companion
Link copied to clipboard

Use to retrieve the current timecode from the videoplayer to enable Spoiler-Free Sync.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var rewardTypeFlow: MutableStateFlow<String?>
Link copied to clipboard
val sdkScope: CoroutineScope
Link copied to clipboard
val uiScope: CoroutineScope
Link copied to clipboard

Functions

Link copied to clipboard
fun addSession(session: BaseSession)
Link copied to clipboard
open override fun close()
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
open override fun setLanguage(language: String)