Package-level declarations
Types
Link copied to clipboard
class ContentSession(val configurationOnce: Once<SdkConfiguration>, val currentProfileOnce: Once<LiveLikeProfile>, rewardTypeFlow: MutableStateFlow<String?>, programId: String, val analyticService: AnalyticsService, errorDelegate: ErrorDelegate? = null, connectToDefaultChatRoom: Boolean, val networkApiClient: NetworkApiClient, val dataStoreDelegate: DataStoreDelegate, val chatSession: LiveLikeChatSession, val isLayoutTransitionEnabled: Boolean, preLoadImage: suspend (String) -> Boolean, lottieAnimationPath: (String) -> String??, leaderboardClient: LiveLikeLeaderBoardClient, leaderBoardDelegateHandler: (LeaderBoardDelegate) -> Unit, sessionDispatcher: CoroutineDispatcher, uiDispatcher: CoroutineDispatcher, currentPlayheadTime: () -> EpochTime) : BaseSession, LiveLikeContentSession
Link copied to clipboard
data class EarnableReward(var rewardActionKey: String, var rewardItemName: String, var rewardItemAmount: Int, var rewardItemId: String)
Link copied to clipboard
interface LiveLikeContentSession
Represents a Content Session which LiveLike uses to deliver widgets and associate user with the Chat component.
Link copied to clipboard
Link copied to clipboard
data class OptionReward(var rewardItemId: String? = null, var rewardItemName: String? = null, var rewardItemAmount: Int? = null, var rewardItem: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class RewardSummary(var rewardActionKey: String? = null, var rewardItemName: String? = null, var rewardItemAmount: Int? = null)
Link copied to clipboard
All events that will be published on animation stream shared across different view components to sync animation updates. For instance, badge is collected on widget component then badge animation will took place inside chatView.
Link copied to clipboard
Link copied to clipboard
data class WidgetInfos(val type: String, val payload: JsonObject, var widgetId: String, var onDismiss: () -> Unit?? = null)
A representation of a widget
Link copied to clipboard
Link copied to clipboard
data class WidgetsRequestParameters(val widgetTypeFilter: Set<WidgetType> = emptySet(), val widgetStatus: WidgetStatus? = null, val ordering: WidgetsRequestOrdering? = null, val interactive: Boolean? = null, val since: String? = null)
Link copied to clipboard
Functions
Link copied to clipboard
fun LiveLikeKotlin.createContentSession(programId: String, timecodeGetter: TimeCodeGetter, errorDelegate: ErrorDelegate? = null, connectToDefaultChatRoom: Boolean = true, chatSession: LiveLikeChatSession, preLoadImage: suspend (String) -> Boolean, isLayoutTransitionEnabled: Boolean = false, lottieAnimationPath: (String) -> String??, sessionDispatcher: CoroutineDispatcher, mainDispatcher: CoroutineDispatcher): LiveLikeContentSession
fun LiveLikeKotlin.createContentSession(programId: String, timecodeGetter: LiveLikeKotlin.TimecodeGetterCore, errorDelegate: ErrorDelegate? = null, connectToDefaultChatRoom: Boolean = true, includeFilteredChatMessages: Boolean = false, preLoadImage: suspend (String) -> Boolean = { false }, isLayoutTransitionEnabled: Boolean = false, lottieAnimationPath: (String) -> String? = { null }, sessionDispatcher: CoroutineDispatcher = Dispatchers.Default, uiDispatcher: CoroutineDispatcher = Dispatchers.Main, quoteChatMessageDeletedMessage: String = "Message deleted.", chatMessageDeletedMessage: String = "This message has been removed.", isPlatformLocalContentImageUrl: (String) -> Boolean = { false }, getInputStreamForImageUrl: (String) -> InputStream? = { null }, getSizeOfImage: (ByteArray) -> ImageSize = { ImageSize(100, 100) }, chatSessionDispatcher: CoroutineDispatcher = Dispatchers.Default, chatMainDispatcher: CoroutineDispatcher = Dispatchers.Main, chatEnforceUniqueMessageCallback: Boolean = false): LiveLikeContentSession
fun LiveLikeKotlin.createContentSession(programId: String, timeCodeGetter: TimeCodeGetter, errorDelegate: ErrorDelegate? = null, connectToDefaultChatRoom: Boolean = true, includeFilteredChatMessages: Boolean = false, preLoadImage: suspend (String) -> Boolean = { false }, isLayoutTransitionEnabled: Boolean = false, lottieAnimationPath: (String) -> String? = { null }, sessionDispatcher: CoroutineDispatcher = Dispatchers.Default, uiDispatcher: CoroutineDispatcher = Dispatchers.Main, quoteChatMessageDeletedMessage: String = "Message deleted.", chatMessageDeletedMessage: String = "This message has been removed.", isPlatformLocalContentImageUrl: (String) -> Boolean = { false }, getInputStreamForImageUrl: (String) -> InputStream? = { null }, getSizeOfImage: (ByteArray) -> ImageSize = { ImageSize(100, 100) }, chatSessionDispatcher: CoroutineDispatcher = Dispatchers.Default, chatMainDispatcher: CoroutineDispatcher = Dispatchers.Main, chatEnforceUniqueMessageCallback: Boolean = false): LiveLikeContentSession
Creates a content session.
Link copied to clipboard
fun LiveLikeKotlin.fetchWidgetDetails(widgetId: String, widgetKind: String, liveLikeCallback: LiveLikeCallback<LiveLikeWidget>)
Fetch all widget details.
Link copied to clipboard
fun LiveLikeKotlin.getProgramByCustomID(customID: String, liveLikeCallback: LiveLikeCallback<Program>)
Get program details
Link copied to clipboard
Link copied to clipboard
Returns leaderboard client
Link copied to clipboard
Create a sponsor client and returns that
Link copied to clipboard