while Created
fun <T : Any> Observable<T>.whileCreated(owner: LifecycleOwner, onNext: Consumer<T>, onError: Consumer<in Throwable>? = null, onStart: Consumer<Disposable>? = null, onComplete: Action? = null)
Emits events from this Observable to the consumers as long as the lifecycle owner remains in the state Lifecycle.State.CREATED and then disposes the subscription.
fun <T : Any> Flowable<T>.whileCreated(owner: LifecycleOwner, onNext: Consumer<T>, onError: Consumer<in Throwable>? = null, onStart: Consumer<Disposable>? = null, onComplete: Action? = null)
Emits events from this Flowable to the consumers as long as the lifecycle owner remains in the state Lifecycle.State.CREATED and then disposes the subscription.
fun <T : Any> Maybe<T>.whileCreated(owner: LifecycleOwner, onSuccess: Consumer<T>, onError: Consumer<in Throwable>? = null, onStart: Consumer<Disposable>? = null, onComplete: Action? = null)
Emits events from this Maybe to the consumers as long as the lifecycle owner remains in the state Lifecycle.State.CREATED and then disposes the subscription.
fun Completable.whileCreated(owner: LifecycleOwner, onComplete: Action? = null, onError: Consumer<in Throwable>?, onStart: Consumer<Disposable>? = null)
Emits events from this Completable to the consumers as long as the lifecycle owner remains in the state Lifecycle.State.CREATED and then disposes the subscription.