LiveLikeContentSession

Represents a Content Session which LiveLike uses to deliver widgets and associate user with the Chat component.

Inheritors

Properties

Link copied to clipboard

The analytics services

Link copied to clipboard
abstract val widgetFlow: Flow<LiveLikeWidget>
Link copied to clipboard

Intercepts the widgets and hold them until show() or dismiss() is being called

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun close()

Closes the current session.

Link copied to clipboard
abstract fun contentSessionId(): String

Return the content Session Id (Program Id) for this session.

Link copied to clipboard
abstract fun getLeaderboardClients(leaderBoardId: List<String>, liveLikeCallback: LiveLikeCallback<LeaderboardClient>)

Returns list of leaderboards associated to entered program

Link copied to clipboard
abstract fun getPlayheadTime(): EpochTime

Return the playheadTime for this session.

Link copied to clipboard
abstract fun getPublishedWidgets(getPublishedWidgetsRequestOptions: GetPublishedWidgetsRequestOptions, liveLikeCallback: LiveLikeCallback<List<LiveLikeWidget>>)

Return the widget list which has been published if the result is empty that means there is no data further and user reached end of list

Link copied to clipboard
abstract fun getRewardItems(): List<RewardItem>

Returns list of reward item associated to entered program

Link copied to clipboard
abstract fun getWidgetInteraction(widgetId: String, widgetKind: String, widgetInteractionUrl: String, liveLikeCallback: LiveLikeCallback<WidgetUserInteractionBase>)

Returns interactions for widget

Link copied to clipboard
abstract fun getWidgetInteractions(widgetKinds: List<String>, liveLikeCallback: LiveLikeCallback<Map<String, List<WidgetUserInteractionBase>>>)

Returns interactions for widget

Returns list of interactions for which rewards have not been claimed

Link copied to clipboard
abstract fun getWidgetModelFromJson(widgetResourceJson: JsonObject): BaseViewModel?

Returns the BaseViewModel object to utilize the apis with there own custom Widget

Link copied to clipboard
Link copied to clipboard
abstract fun getWidgets(liveLikePagination: LiveLikePagination, requestParams: WidgetsRequestParameters?, liveLikeCallback: LiveLikeCallback<List<LiveLikeWidget>>)

Returns widget models based on the options parameter provided

Link copied to clipboard
Link copied to clipboard
abstract fun pause()

Pause the current Chat and widget sessions. This generally happens when ads are presented

Link copied to clipboard
abstract fun resume()

Resume the current Chat and widget sessions. This generally happens when ads are completed

Link copied to clipboard
abstract fun subscribeToChannels(channels: List<String>): Flow<RealTimeClientMessage>?

Returns Flow and subscribe to specified pubnub channels

Link copied to clipboard
abstract fun unsubscribeFromChannels(channels: List<String>)

Unsubscribe from specified pubnub channels