public static class ObservableUseCaseConfig.Builder<T>
Constructs references to lambdas and some basic configuration used to process results of Observabler use case.
| Constructor and Description |
|---|
Builder()
Constructs references to lambdas and some basic configuration
used to process results of Observabler use case.
|
| Modifier and Type | Method and Description |
|---|---|
ObservableUseCaseConfig<T> |
build() |
void |
disposePrevious(boolean disposePrevious)
Set whether currently running internal Observable
should be disposed when execute is called repeatedly.
|
void |
onComplete(kotlin.jvm.functions.Function0<kotlin.Unit> onComplete)
Set lambda which is called when onComplete on
internal Observable is called
|
void |
onError(kotlin.jvm.functions.Function1<? super java.lang.Throwable,kotlin.Unit> onError)
Set lambda which is called when onError on
internal Observable is called
|
void |
onNext(kotlin.jvm.functions.Function1<? super T,kotlin.Unit> onNext)
Set lambda which is called when onNext on
internal Observable is called
|
void |
onStart(kotlin.jvm.functions.Function0<kotlin.Unit> onStart)
Set lambda which is called right before
internal Observable is subscribed
|
public Builder()
Constructs references to lambdas and some basic configuration used to process results of Observabler use case.
public void onStart(@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> onStart)
Set lambda which is called right before internal Observable is subscribed
onStart - Lambda called right before Observable issubscribed.public void onNext(@NotNull
kotlin.jvm.functions.Function1<? super T,kotlin.Unit> onNext)
Set lambda which is called when onNext on internal Observable is called
onNext - Lambda called when onNext isemitted.public void onComplete(@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> onComplete)
Set lambda which is called when onComplete on internal Observable is called
onComplete - Lambda called when onComplete isemitted.public void onError(@NotNull
kotlin.jvm.functions.Function1<? super java.lang.Throwable,kotlin.Unit> onError)
Set lambda which is called when onError on internal Observable is called
onError - Lambda called when onError isemitted.public void disposePrevious(boolean disposePrevious)
Set whether currently running internal Observable should be disposed when execute is called repeatedly.
disposePrevious - True if currently runninginternal Observable should be disposed@NotNull public ObservableUseCaseConfig<T> build()