Package 

Interface MaybeDisposablesOwner


  • 
    public interface MaybeDisposablesOwner
    
                        

    This interface gives your class ability to execute MaybeUseCase use cases and automatically add resulting disposables to one composite disposable. You may find handy to implement this interface in custom Presenters, ViewHolders etc.

    Consider using DisposablesOwner to support all of the basic RxJava 2 types.

    It is your responsibility to clear this composite disposable when all running tasks should be stopped.

    • Method Summary

      Modifier and Type Method Description
      <T extends Any> Disposable execute(MaybeUseCase<Unit, T> $self, Function1<MaybeUseCaseConfig.Builder<T>, Unit> config) Executes the use case and adds its disposable to shared, automatically disposed, composite disposable.
      <ARGS extends Any, T extends Any> Disposable execute(MaybeUseCase<ARGS, T> $self, ARGS args, Function1<MaybeUseCaseConfig.Builder<T>, Unit> config) Executes the use case and adds its disposable to shared, automatically disposed, composite disposable.
      <T extends Any> Disposable executeStream(Maybe<T> $self, Function1<MaybeUseCaseConfig.Builder<T>, Unit> config) Executes the Maybe and adds its disposable to shared, automatically disposed, composite disposable.
      abstract CompositeDisposable getDisposables()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait