Package-level declarations
Types
Link copied to clipboard
interface AccessTokenDelegate
Link copied to clipboard
interface DataStoreDelegate
Link copied to clipboard
Link copied to clipboard
used in callback for returning error severity
Link copied to clipboard
used for error severity all api errors are treated as high severity
Link copied to clipboard
interface ILiveLikeKotlin
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.29", networkDispatcher: CoroutineDispatcher = Dispatchers.IO, sdkDispatcher: CoroutineDispatcher = Dispatchers.Default, mainDispatcher: CoroutineDispatcher = Dispatchers.Main, val networkClient: NetworkApiClient = NetworkApiClient.getInstance(
NetworkClientConfig(userAgent), networkDispatcher
)) : ILiveLikeKotlin
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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