public static class ObservableDisposablesOwner.DefaultImpls
This interface gives your class ability to execute class ObservableUseCase use cases
and automatically add resulting disposables to one composite disposable. You
may find handy to implement this interface in custom Presenters, ViewHolders etc.
Consider using interface DisposablesOwner to support all of the basic RxJava 2 types.
It is your responsibility to clear this composite disposable when all running tasks should be stopped.
| Modifier and Type | Method and Description |
|---|---|
static <T> io.reactivex.disposables.Disposable |
execute(ObservableDisposablesOwner $this,
ObservableUseCase<kotlin.Unit,T> $receiver,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.ObservableUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of
ObservableUseCase.execute method has already been called
on this instance of class ObservableUseCase, previous one is disposed,
no matter what current state of internal Observable is. This behavior
can be disabled by passing false to ObservableUseCaseConfig.disposePrevious
method. |
static <ARGS,T> io.reactivex.disposables.Disposable |
execute(ObservableDisposablesOwner $this,
ObservableUseCase<ARGS,T> $receiver,
ARGS args,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.ObservableUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of
ObservableUseCase.execute method has already been called
on this instance of class ObservableUseCase, previous one is disposed,
no matter what current state of internal Observable is. This behavior
can be disabled by passing false to ObservableUseCaseConfig.disposePrevious
method. |
static <T> io.reactivex.disposables.Disposable |
executeStream(ObservableDisposablesOwner $this,
io.reactivex.Observable<T> $receiver,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.ObservableUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the Observable and adds its disposable to
shared, automatically disposed, composite disposable.
|
@NotNull public static <T> io.reactivex.disposables.Disposable execute(ObservableDisposablesOwner $this, @NotNull ObservableUseCase<kotlin.Unit,T> $receiver, @NotNull kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.ObservableUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of ObservableUseCase.execute method has already been called
on this instance of class ObservableUseCase, previous one is disposed,
no matter what current state of internal Observable is. This behavior
can be disabled by passing false to ObservableUseCaseConfig.disposePrevious
method.
$receiver - ObservablerConfig used to process results of internal Observable.config - ObservablerConfig used to process results of internal Observable.ObservableUseCase.execute,
class ObservableUseCase@NotNull public static <ARGS,T> io.reactivex.disposables.Disposable execute(ObservableDisposablesOwner $this, @NotNull ObservableUseCase<ARGS,T> $receiver, ARGS args, @NotNull kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.ObservableUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of ObservableUseCase.execute method has already been called
on this instance of class ObservableUseCase, previous one is disposed,
no matter what current state of internal Observable is. This behavior
can be disabled by passing false to ObservableUseCaseConfig.disposePrevious
method.
$receiver - Arguments used for initial use case initialisation.args - class ObservableUseCaseConfig used to process results of internal Observable.config - class ObservableUseCaseConfig used to process results of internal Observable.ObservableUseCase.execute,
class ObservableUseCase@NotNull public static <T> io.reactivex.disposables.Disposable executeStream(ObservableDisposablesOwner $this, @NotNull io.reactivex.Observable<T> $receiver, @NotNull kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.ObservableUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the Observable and adds its disposable to shared, automatically disposed, composite disposable.
$receiver - class ObservableUseCaseConfig used to process results of internal Observable.config - class ObservableUseCaseConfig used to process results of internal Observable.