-
public final class KotlinExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static ScopeProviderscope(LifecycleOwner $self)Extension that returns a ScopeProvider for this LifecycleOwner. final static ScopeProviderscope(LifecycleOwner $self, Lifecycle.Event untilEvent)Extension that returns a ScopeProvider for this LifecycleOwner. final static ScopeProviderscope(LifecycleOwner $self, CorrespondingEventsFunction<Lifecycle.Event> boundaryResolver)Extension that returns a ScopeProvider for this LifecycleOwner. final static ScopeProviderscope(Lifecycle $self)Extension that returns a ScopeProvider for this Lifecycle. final static ScopeProviderscope(Lifecycle $self, Lifecycle.Event untilEvent)Extension that returns a ScopeProvider for this Lifecycle. final static ScopeProviderscope(Lifecycle $self, CorrespondingEventsFunction<Lifecycle.Event> boundaryResolver)Extension that returns a ScopeProvider for this Lifecycle. final static <T extends Any> FlowableSubscribeProxy<T>autoDispose(Flowable<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)Extension that proxies to Flowable.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed. final static <T extends Any> ObservableSubscribeProxy<T>autoDispose(Observable<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)Extension that proxies to Observable.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed. final static <T extends Any> SingleSubscribeProxy<T>autoDispose(Single<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)Extension that proxies to Single.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed. final static <T extends Any> MaybeSubscribeProxy<T>autoDispose(Maybe<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)Extension that proxies to Maybe.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed. final static CompletableSubscribeProxyautoDispose(Completable $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)Extension that proxies to Completable.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed. final static <T extends Any> ParallelFlowableSubscribeProxy<T>autoDispose(ParallelFlowable<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)Extension that proxies to ParallelFlowable.as + AutoDispose.autoDisposable and takes an untilEvent when subscription will be disposed. -
-
Method Detail
-
scope
final static ScopeProvider scope(LifecycleOwner $self)
Extension that returns a ScopeProvider for this LifecycleOwner.
-
scope
final static ScopeProvider scope(LifecycleOwner $self, Lifecycle.Event untilEvent)
Extension that returns a ScopeProvider for this LifecycleOwner.
- Parameters:
untilEvent- the event until the scope is valid.
-
scope
final static ScopeProvider scope(LifecycleOwner $self, CorrespondingEventsFunction<Lifecycle.Event> boundaryResolver)
Extension that returns a ScopeProvider for this LifecycleOwner.
- Parameters:
boundaryResolver- function that resolves the event boundary.
-
scope
final static ScopeProvider scope(Lifecycle $self)
Extension that returns a ScopeProvider for this Lifecycle.
-
scope
final static ScopeProvider scope(Lifecycle $self, Lifecycle.Event untilEvent)
Extension that returns a ScopeProvider for this Lifecycle.
- Parameters:
untilEvent- the event until the scope is valid.
-
scope
final static ScopeProvider scope(Lifecycle $self, CorrespondingEventsFunction<Lifecycle.Event> boundaryResolver)
Extension that returns a ScopeProvider for this Lifecycle.
- Parameters:
boundaryResolver- function that resolves the event boundary.
-
autoDispose
final static <T extends Any> FlowableSubscribeProxy<T> autoDispose(Flowable<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)
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.
-
autoDispose
final static <T extends Any> ObservableSubscribeProxy<T> autoDispose(Observable<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)
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.
-
autoDispose
final static <T extends Any> SingleSubscribeProxy<T> autoDispose(Single<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)
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.
-
autoDispose
final static <T extends Any> MaybeSubscribeProxy<T> autoDispose(Maybe<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)
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.
-
autoDispose
final static CompletableSubscribeProxy autoDispose(Completable $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)
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.
-
autoDispose
final static <T extends Any> ParallelFlowableSubscribeProxy<T> autoDispose(ParallelFlowable<T> $self, LifecycleOwner lifecycleOwner, Lifecycle.Event untilEvent)
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.
-
-
-
-