Package 

Class KotlinExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final static ScopeProvider scope(LifecycleOwner $self) Extension that returns a ScopeProvider for this LifecycleOwner.
      final static ScopeProvider scope(LifecycleOwner $self, Lifecycle.Event untilEvent) Extension that returns a ScopeProvider for this LifecycleOwner.
      final static ScopeProvider scope(LifecycleOwner $self, CorrespondingEventsFunction<Lifecycle.Event> boundaryResolver) Extension that returns a ScopeProvider for this LifecycleOwner.
      final static ScopeProvider scope(Lifecycle $self) Extension that returns a ScopeProvider for this Lifecycle.
      final static ScopeProvider scope(Lifecycle $self, Lifecycle.Event untilEvent) Extension that returns a ScopeProvider for this Lifecycle.
      final static ScopeProvider scope(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 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.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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.