Package com.skydoves.sandwich.datasource

Types

Link copied to clipboard
enum DataRetainPolicy : Enum<DataRetainPolicy>
Link copied to clipboard
interface DataSource<T>
Link copied to clipboard
class ResponseDataSource<T> : DataSource<T>

Functions

Link copied to clipboard
inline fun <T> Call<T>.combineDataSource(dataSource: DataSource<T>, crossinline onResult: (response: ApiResponse<T>) -> Unit): DataSource<T>
Link copied to clipboard
inline fun <T> Call<T>.suspendCombineDataSource(    dataSource: DataSource<T>,     context: CoroutineContext = EmptyCoroutineContext,     crossinline onResult: suspend (response: ApiResponse<T>) -> Unit): DataSource<T>
inline fun <T> Call<T>.suspendCombineDataSource(    dataSource: DataSource<T>,     coroutineScope: CoroutineScope,     crossinline onResult: suspend (response: ApiResponse<T>) -> Unit): DataSource<T>
Link copied to clipboard
fun <T> DataSource<T>.toResponseDataSource(): ResponseDataSource<T>