autodispose-android-archcomponents / com.uber.autodispose.android.lifecycle / AndroidLifecycleScopeProvider / from

from

static fun from(owner: LifecycleOwner): AndroidLifecycleScopeProvider
static fun from(owner: LifecycleOwner): AndroidLifecycleScopeProvider

Creates a AndroidLifecycleScopeProvider for Android LifecycleOwners.

Parameters

owner - the owner to scope for.

Return
a AndroidLifecycleScopeProvider against this owner.

static fun from(owner: LifecycleOwner, untilEvent: Event): AndroidLifecycleScopeProvider
static fun from(owner: LifecycleOwner, untilEvent: Event): AndroidLifecycleScopeProvider

Creates a AndroidLifecycleScopeProvider for Android LifecycleOwners.

Parameters

owner - the owner to scope for.

untilEvent - the event until the scope is valid.

Return
a AndroidLifecycleScopeProvider against this owner.

static fun from(lifecycle: Lifecycle): AndroidLifecycleScopeProvider
static fun from(lifecycle: Lifecycle): AndroidLifecycleScopeProvider

Creates a AndroidLifecycleScopeProvider for Android Lifecycles.

Parameters

lifecycle - the lifecycle to scope for.

Return
a AndroidLifecycleScopeProvider against this lifecycle.

static fun from(lifecycle: Lifecycle, untilEvent: Event): AndroidLifecycleScopeProvider
static fun from(lifecycle: Lifecycle, untilEvent: Event): AndroidLifecycleScopeProvider

Creates a AndroidLifecycleScopeProvider for Android Lifecycles.

Parameters

lifecycle - the lifecycle to scope for.

untilEvent - the event until the scope is valid.

Return
a AndroidLifecycleScopeProvider against this lifecycle.

static fun from(owner: LifecycleOwner, boundaryResolver: CorrespondingEventsFunction<Event>): AndroidLifecycleScopeProvider
static fun from(owner: LifecycleOwner, boundaryResolver: CorrespondingEventsFunction<Event>): AndroidLifecycleScopeProvider

Creates a AndroidLifecycleScopeProvider for Android Lifecycles.

Parameters

owner - the owner to scope for.

boundaryResolver - function that resolves the event boundary.

Return
a AndroidLifecycleScopeProvider against this owner.

static fun from(lifecycle: Lifecycle, boundaryResolver: CorrespondingEventsFunction<Event>): AndroidLifecycleScopeProvider
static fun from(lifecycle: Lifecycle, boundaryResolver: CorrespondingEventsFunction<Event>): AndroidLifecycleScopeProvider

Creates a AndroidLifecycleScopeProvider for Android Lifecycles.

Parameters

lifecycle - the lifecycle to scope for.

boundaryResolver - function that resolves the event boundary.

Return
a AndroidLifecycleScopeProvider against this lifecycle.