Package org.dexcare.exts

Functions

convertToRxJava
Link copied to clipboard
fun <T : Any> DataObserver<T>.convertToRxJava(): Single<T>
Converts a DataObserver back into an RxJava pipeline, as a Single.
getErrorString
Link copied to clipboard
fun HttpException.getErrorString(): String?
getNow
Link copied to clipboard
fun <T> DataObserver<T>.getNow(): Pair<T?, Throwable?>
Provides blockingGet() functionality to DataObservers.
handleGeneralErrors
Link copied to clipboard
fun Completable.handleGeneralErrors(baseRetry: BaseRetry? = HttpRetryImpl()): Completable
fun <T : Any> Single<T>.handleGeneralErrors(baseRetry: BaseRetry? = HttpRetryImpl()): Single<T>
hideKeyboard
Link copied to clipboard
fun View.hideKeyboard()
injectHttpError
Link copied to clipboard
fun Completable.injectHttpError(onErrorReturn: (HttpException) -> Throwable): Completable
fun <T : Any> Single<T>.injectHttpError(onErrorReturn: (HttpException) -> Throwable): Single<T>