SingleDisposablesOwner

interface SingleDisposablesOwner

This interface gives your class ability to execute 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 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.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
execute
Link copied to clipboard
open fun <T> SingleUseCase<Unit, T>.execute(config: SingleUseCaseConfig.Builder<T>.() -> Unit): Disposable
Executes the use case and adds its disposable to shared, automatically disposed, composite disposable.
open fun <ARGS, T> SingleUseCase<ARGS, T>.execute(args: ARGS, config: SingleUseCaseConfig.Builder<T>.() -> Unit): Disposable
Executes the use case and adds its disposable to shared, automatically disposed, composite disposable.
executeStream
Link copied to clipboard
open fun <T : Any> Single<T>.executeStream(config: SingleUseCaseConfig.Builder<T>.() -> Unit): Disposable
Executes the Single and adds its disposable to shared, automatically disposed, composite disposable.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

disposables
Link copied to clipboard
abstract val disposables: CompositeDisposable

Inheritors

DisposablesOwner
Link copied to clipboard