public final class AndroidLifecycleScopeProvider
extends java.lang.Object
LifecycleScopeProvider that can provide scoping for Android Lifecycle and
LifecycleOwner classes.
AutoDispose.autoDisposable(AndroidLifecycleScopeProvider.from(lifecycleOwner))
| Modifier and Type | Method and Description |
|---|---|
<any> |
correspondingEvents() |
static AndroidLifecycleScopeProvider |
from(Lifecycle lifecycle)
Creates a
AndroidLifecycleScopeProvider for Android Lifecycles. |
static AndroidLifecycleScopeProvider |
from(Lifecycle lifecycle,
<any> boundaryResolver)
Creates a
AndroidLifecycleScopeProvider for Android Lifecycles. |
static AndroidLifecycleScopeProvider |
from(Lifecycle lifecycle,
Lifecycle.Event untilEvent)
Creates a
AndroidLifecycleScopeProvider for Android Lifecycles. |
static AndroidLifecycleScopeProvider |
from(LifecycleOwner owner)
Creates a
AndroidLifecycleScopeProvider for Android LifecycleOwners. |
static AndroidLifecycleScopeProvider |
from(LifecycleOwner owner,
<any> boundaryResolver)
Creates a
AndroidLifecycleScopeProvider for Android Lifecycles. |
static AndroidLifecycleScopeProvider |
from(LifecycleOwner owner,
Lifecycle.Event untilEvent)
Creates a
AndroidLifecycleScopeProvider for Android LifecycleOwners. |
<any> |
lifecycle() |
Lifecycle.Event |
peekLifecycle() |
CompletableSource |
requestScope() |
public static AndroidLifecycleScopeProvider from(LifecycleOwner owner)
AndroidLifecycleScopeProvider for Android LifecycleOwners.owner - the owner to scope for.AndroidLifecycleScopeProvider against this owner.public static AndroidLifecycleScopeProvider from(LifecycleOwner owner, Lifecycle.Event untilEvent)
AndroidLifecycleScopeProvider for Android LifecycleOwners.owner - the owner to scope for.untilEvent - the event until the scope is valid.AndroidLifecycleScopeProvider against this owner.public static AndroidLifecycleScopeProvider from(Lifecycle lifecycle)
AndroidLifecycleScopeProvider for Android Lifecycles.lifecycle - the lifecycle to scope for.AndroidLifecycleScopeProvider against this lifecycle.public static AndroidLifecycleScopeProvider from(Lifecycle lifecycle, Lifecycle.Event untilEvent)
AndroidLifecycleScopeProvider for Android Lifecycles.lifecycle - the lifecycle to scope for.untilEvent - the event until the scope is valid.AndroidLifecycleScopeProvider against this lifecycle.public static AndroidLifecycleScopeProvider from(LifecycleOwner owner, <any> boundaryResolver)
AndroidLifecycleScopeProvider for Android Lifecycles.owner - the owner to scope for.boundaryResolver - function that resolves the event boundary.AndroidLifecycleScopeProvider against this owner.public static AndroidLifecycleScopeProvider from(Lifecycle lifecycle, <any> boundaryResolver)
AndroidLifecycleScopeProvider for Android Lifecycles.lifecycle - the lifecycle to scope for.boundaryResolver - function that resolves the event boundary.AndroidLifecycleScopeProvider against this lifecycle.public <any> lifecycle()
public <any> correspondingEvents()
public Lifecycle.Event peekLifecycle()
public CompletableSource requestScope()