public SingleDisposablesOwner
This interface gives your class ability to execute class SingleUseCase 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.
class SingleUseCase,
interface DisposablesOwner| Modifier and Type | Interface and Description |
|---|---|
static class |
SingleDisposablesOwner.DefaultImpls
This interface gives your class ability to execute
class SingleUseCase use cases
and automatically add resulting disposables to one composite disposable. You
may find handy to implement this interface in custom Presenters, ViewHolders etc. |
| Modifier and Type | Method and Description |
|---|---|
<T> io.reactivex.disposables.Disposable |
execute(SingleUseCase<kotlin.Unit,T> $receiver,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.SingleUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of
SingleUseCase.execute method has already been called
on this instance of class SingleUseCase, previous one is disposed,
no matter what current state of internal Single is.
Use Single.executeStream if you want to run one
class SingleUseCase multiple times simultaneously. This behavior
can be disabled by passing false to SingleUseCaseConfig.disposePrevious
method. |
<ARGS,T> io.reactivex.disposables.Disposable |
execute(SingleUseCase<ARGS,T> $receiver,
ARGS args,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.SingleUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of
SingleUseCase.execute method has already been called
on this instance of class SingleUseCase, previous one is disposed,
no matter what current state of internal Single is.
Use Single.executeStream if you want to run one
class SingleUseCase multiple times simultaneously. This behavior
can be disabled by passing false to SingleUseCaseConfig.disposePrevious
method. |
<T> io.reactivex.disposables.Disposable |
executeStream(io.reactivex.Single<T> $receiver,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.SingleUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the Single and adds its disposable to
shared, automatically disposed, composite disposable.
|
io.reactivex.disposables.CompositeDisposable |
getDisposables() |
@NotNull io.reactivex.disposables.CompositeDisposable getDisposables()
@NotNull
<T> io.reactivex.disposables.Disposable execute(@NotNull
SingleUseCase<kotlin.Unit,T> $receiver,
@NotNull
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.SingleUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of SingleUseCase.execute method has already been called
on this instance of class SingleUseCase, previous one is disposed,
no matter what current state of internal Single is.
Use Single.executeStream if you want to run one
class SingleUseCase multiple times simultaneously. This behavior
can be disabled by passing false to SingleUseCaseConfig.disposePrevious
method.
config - SinglerConfig used to process results of internal Single.SingleUseCase.execute,
class SingleUseCase,
Single.executeStream,
class SingleUseCase@NotNull
<ARGS,T> io.reactivex.disposables.Disposable execute(@NotNull
SingleUseCase<ARGS,T> $receiver,
ARGS args,
@NotNull
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.SingleUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of SingleUseCase.execute method has already been called
on this instance of class SingleUseCase, previous one is disposed,
no matter what current state of internal Single is.
Use Single.executeStream if you want to run one
class SingleUseCase multiple times simultaneously. This behavior
can be disabled by passing false to SingleUseCaseConfig.disposePrevious
method.
args - Arguments used for initial use case initialization.config - class SingleUseCaseConfig used to process results of internal Single.SingleUseCase.execute,
class SingleUseCase,
Single.executeStream,
class SingleUseCase@NotNull
<T> io.reactivex.disposables.Disposable executeStream(@NotNull
io.reactivex.Single<T> $receiver,
@NotNull
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.SingleUseCaseConfig.Builder<T>,kotlin.Unit> config)
Executes the Single and adds its disposable to shared, automatically disposed, composite disposable.
config - class SingleUseCaseConfig used to process results of internal Single.