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
interface TimecodeGetterCore
Properties
Functions
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard