LiveLikeKotlin

open class LiveLikeKotlin(clientId: String, val errorDelegate: ErrorDelegate? = null, originURL: String = "https://cf-blast.livelikecdn.com", val dataStoreDelegate: DataStoreDelegate = DataStoreDelegateKotlinImpl(), accessTokenDelegate: AccessTokenDelegate? = object : AccessTokenDelegate { override fun getAccessToken(): String? = dataStoreDelegate.getAccessToken() override fun storeAccessToken(accessToken: String?) { accessToken?.let { dataStoreDelegate.setAccessToken(accessToken) } } }, userAgent: String? = "LiveLikeKotlin/3.0.27", networkDispatcher: CoroutineDispatcher = Dispatchers.IO, sdkDispatcher: CoroutineDispatcher = Dispatchers.Default, mainDispatcher: CoroutineDispatcher = Dispatchers.Main, val networkClient: NetworkApiClient = NetworkApiClient.getInstance( NetworkClientConfig(userAgent), networkDispatcher )) : ILiveLikeKotlin

Constructors

Link copied to clipboard
constructor(clientId: String, errorDelegate: ErrorDelegate? = null, originURL: String = "https://cf-blast.livelikecdn.com", dataStoreDelegate: DataStoreDelegate = DataStoreDelegateKotlinImpl(), accessTokenDelegate: AccessTokenDelegate? = object : AccessTokenDelegate { override fun getAccessToken(): String? = dataStoreDelegate.getAccessToken() override fun storeAccessToken(accessToken: String?) { accessToken?.let { dataStoreDelegate.setAccessToken(accessToken) } } }, userAgent: String? = "LiveLikeKotlin/3.0.27", networkDispatcher: CoroutineDispatcher = Dispatchers.IO, sdkDispatcher: CoroutineDispatcher = Dispatchers.Default, mainDispatcher: CoroutineDispatcher = Dispatchers.Main, networkClient: NetworkApiClient = NetworkApiClient.getInstance( NetworkClientConfig(userAgent), networkDispatcher ))

Types

Link copied to clipboard

Properties

Link copied to clipboard

Changed analytics service from stream

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

Omits authentication on supported comment reads while retaining the local profile for ownership fields. Defaults to false. Writes, report reads and board reads remain authenticated. Comment clients, feed clients and sessions capture this value at creation; recreate them to apply changes. Recreating a session also recreates its internal comment client. This legacy setting retains its behavior independently of setGetRequestInterceptor.

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

Functions

Link copied to clipboard
fun addSession(session: BaseSession)
Link copied to clipboard
open override fun close()

Closing all the services , stream and clear the variable TODO: all stream close,instance clear

Link copied to clipboard
Link copied to clipboard
inline fun <B : Any, R : Any> LiveLikeKotlin.request(path: String?, url: String? = null, requestType: RequestType, queryParameters: List<Pair<String, Any?>> = emptyList(), body: B? = null, accessToken: String? = null, headers: List<Pair<String, String>> = emptyList(), noinline callback: LiveLikeCallback<R>)
Link copied to clipboard

Registers or replaces the callback for outgoing HTTPS GETs to cf-blast.livelikecdn.com. Other hosts (including PubNub) and write requests are not intercepted. Pass null to remove it.

Link copied to clipboard
open override fun setLanguage(language: String)
Link copied to clipboard