-
public final class CompletableUseCaseConfig.BuilderConstructs references to lambdas and some basic configuration used to process results of Completabler use case.
-
-
Constructor Summary
Constructors Constructor Description CompletableUseCaseConfig.Builder()
-
Method Summary
Modifier and Type Method Description final UnitonStart(Function0<Unit> onStart)Set lambda which is called right before internal Completable is subscribed final UnitonComplete(Function0<Unit> onComplete)Set lambda which is called when onComplete on internal Completable is called final UnitonError(Function1<Throwable, Unit> onError)Set lambda which is called when onError on internal Completable is called final UnitdisposePrevious(Boolean disposePrevious)Set whether currently running internal Completable should be disposed when execute is called repeatedly. final CompletableUseCaseConfigbuild()-
-
Method Detail
-
onStart
final Unit onStart(Function0<Unit> onStart)
Set lambda which is called right before internal Completable is subscribed
- Parameters:
onStart- Lambda called right before Completable is subscribed.
-
onComplete
final Unit onComplete(Function0<Unit> onComplete)
Set lambda which is called when onComplete on internal Completable is called
- Parameters:
onComplete- Lambda called when onComplete is emitted.
-
onError
final Unit onError(Function1<Throwable, Unit> onError)
Set lambda which is called when onError on internal Completable is called
- Parameters:
onError- Lambda called when onError is emitted.
-
disposePrevious
final Unit disposePrevious(Boolean disposePrevious)
Set whether currently running internal Completable should be disposed when execute is called repeatedly.
- Parameters:
disposePrevious- True if currently running internal Completable should be disposed
-
build
final CompletableUseCaseConfig build()
-
-
-
-