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.22", 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.22", 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
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
open override fun setLanguage(language: String)
Link copied to clipboard