public interface LifecycleProvider<E>
| Modifier and Type | Method and Description |
|---|---|
<T> LifecycleTransformer<T> |
bindToLifecycle()
Binds a source until the next reasonable event occurs.
|
<T> LifecycleTransformer<T> |
bindUntilEvent(E event)
Binds a source until a specific event occurs.
|
io.reactivex.Observable<E> |
lifecycle() |
@Nonnull @CheckReturnValue io.reactivex.Observable<E> lifecycle()
@Nonnull @CheckReturnValue <T> LifecycleTransformer<T> bindUntilEvent(@Nonnull E event)
event - the event that triggers unsubscriptionLifecycleTransformer which unsubscribes when the event triggers.@Nonnull @CheckReturnValue <T> LifecycleTransformer<T> bindToLifecycle()
LifecycleTransformer which unsubscribes at the correct time.