LiveLikeContentSession

LiveLikeContentSession

interface LiveLikeContentSession

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

Fields

Name Description
abstract chatSession: LiveLikeChatSession

The analytics services

abstract var contentSessionleaderBoardDelegate: LeaderBoardDelegate?
abstract var widgetInterceptor: WidgetInterceptor?

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

Methods

pause

abstract fun pause()

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

ReturnValue

Name Description
Unit

resume

abstract fun resume()

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

ReturnValue

Name Description
Unit

close

abstract fun close()

Closes the current session.

ReturnValue

Name Description
Unit

getPlayheadTime

abstract fun getPlayheadTime(): EpochTime

Return the playheadTime for this session.

ReturnValue

Name Description
EpochTime

contentSessionId

abstract fun contentSessionId(): String

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

ReturnValue

Name Description
String

setWidgetContainer

abstract fun setWidgetContainer(widgetView: FrameLayout, widgetViewThemeAttributes: WidgetViewThemeAttributes)

Set the widget container. Recommended to use widgetView.SetSession(session) instead.

Parameters

Name Description
widgetView: FrameLayout
widgetViewThemeAttributes: WidgetViewThemeAttributes

ReturnValue

Name Description
Unit

setProfilePicUrl

abstract fun setProfilePicUrl(url: String?)

Set the user profile pic. to be shown in chatting

Parameters

Name Description
url: String?

ReturnValue

Name Description
Unit

setWidgetViewThemeAttribute

abstract fun setWidgetViewThemeAttribute(widgetViewThemeAttributes: WidgetViewThemeAttributes)

set value of style for widget

Parameters

Name Description
widgetViewThemeAttributes: WidgetViewThemeAttributes

ReturnValue

Name Description
Unit

getPublishedWidgets

abstract fun getPublishedWidgets(liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<LiveLikeWidget?>>)

Parameters

Name Description
liveLikePagination: LiveLikePagination
liveLikeCallback: LiveLikeCallback<List<LiveLikeWidget?>>

ReturnValue

Name Description
Unit

getRewardItems

abstract fun getRewardItems(): List<RewardItem>

Returns list of reward item associated to entered program

ReturnValue

Name Description
List<RewardItem>

getLeaderboardClients

abstract fun getLeaderboardClients(leaderBoardId: List<String>, liveLikeCallback: LiveLikeCallback<LeaderboardClient>)

Parameters

Name Description
leaderBoardId: List<String>
liveLikeCallback: LiveLikeCallback<LeaderboardClient>

ReturnValue

Name Description
Unit