autoDispose

inline fun <T : Any> Flowable<T>.autoDispose(lifecycleOwner: LifecycleOwner, untilEvent: Lifecycle.Event? = null): FlowableSubscribeProxy<T>

Extension that proxies to Flowable.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed.

Parameters

lifecycleOwner

The lifecycle owner.

untilEvent

Optional lifecycle event when subscription will be disposed.


inline fun <T : Any> Observable<T>.autoDispose(lifecycleOwner: LifecycleOwner, untilEvent: Lifecycle.Event? = null): ObservableSubscribeProxy<T>

Extension that proxies to Observable.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed.

Parameters

lifecycleOwner

The lifecycle owner.

untilEvent

Optional lifecycle event when subscription will be disposed.


inline fun <T : Any> Single<T>.autoDispose(lifecycleOwner: LifecycleOwner, untilEvent: Lifecycle.Event? = null): SingleSubscribeProxy<T>

Extension that proxies to Single.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed.

Parameters

lifecycleOwner

The lifecycle owner.

untilEvent

Optional lifecycle event when subscription will be disposed.


inline fun <T : Any> Maybe<T>.autoDispose(lifecycleOwner: LifecycleOwner, untilEvent: Lifecycle.Event? = null): MaybeSubscribeProxy<T>

Extension that proxies to Maybe.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed.

Parameters

lifecycleOwner

The lifecycle owner.

untilEvent

Optional lifecycle event when subscription will be disposed.


Extension that proxies to Completable.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed.

Parameters

lifecycleOwner

The lifecycle owner.

untilEvent

Optional lifecycle event when subscription will be disposed.


Extension that proxies to ParallelFlowable.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed.

Parameters

lifecycleOwner

The lifecycle owner.

untilEvent

Optional lifecycle event when subscription will be disposed.