Builder

class Builder<T>

Constructs references to lambdas and some basic configuration used to process results of Singler use case.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): SingleUseCaseConfig<T>
disposePrevious
Link copied to clipboard
fun disposePrevious(disposePrevious: Boolean)
Set whether currently running internal Single should be disposed when execute is called repeatedly.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onError
Link copied to clipboard
fun onError(onError: (Throwable) -> Unit)
Set lambda which is called when onError on internal Single is called
onStart
Link copied to clipboard
fun onStart(onStart: () -> Unit)
Set lambda which is called right before internal Single is subscribed
onSuccess
Link copied to clipboard
fun onSuccess(onSuccess: (T) -> Unit)
Set lambda which is called when onSuccess on internal Single is called
toString
Link copied to clipboard
open fun toString(): String