Package-level declarations
Types
Link copied to clipboard
object NetworkUtils
Author: @Jeluchu
Link copied to clipboard
object RetrofitClient
Functions
Link copied to clipboard
inline fun <ResultType, RequestType> networkBoundResource(crossinline query: () -> Flow<ResultType>, crossinline fetch: suspend () -> RequestType, crossinline saveFetchResult: suspend (RequestType) -> Unit, crossinline shouldFetch: () -> Boolean = { true }, crossinline dbTransform: (ResultType) -> RequestType): Flow<Resource<Failure, RequestType>>
Link copied to clipboard
inline fun <RequestType> networkResource(crossinline fetch: suspend () -> RequestType, crossinline shouldFetch: () -> Boolean = { true }): Flow<Resource<Failure.NetworkConnection, RequestType>>