@Test public void testBindLifecycleOtherObject() { BehaviorSubject<String> lifecycle = BehaviorSubject.create(); TestObserver<Object> testObserver = observable.compose(RxLifecycle.bind(lifecycle)).test(); testObserver.assertNotComplete(); lifecycle.onNext(""); testObserver.assertComplete(); }
@Nonnull @CheckReturnValue public static <T, R> LifecycleTransformer<T> bind(@Nonnull final Observable<R> lifecycle) { return new LifecycleTransformer<>(lifecycle); }
RxLifecycle { @Nonnull @CheckReturnValue public static <T, R> LifecycleTransformer<T> bind(@Nonnull final Observable<R> lifecycle) { return new LifecycleTransformer<>(lifecycle); } }
RxLifecycle { @Nonnull @CheckReturnValue public static <T, R> LifecycleTransformer<T> bind(@Nonnull final Observable<R> lifecycle) { return new LifecycleTransformer<>(lifecycle); } private  RxLifecycle(); }
RxLifecycle { @Nonnull @CheckReturnValue public static <T, R> LifecycleTransformer<T> bind(@Nonnull final Observable<R> lifecycle) { return new LifecycleTransformer<>(lifecycle); } private  RxLifecycle(); @Nonnull @CheckReturnValue static LifecycleTransformer<T> bindUntilEvent(@Nonnull final Observable<R> lifecycle,
                                                                @Nonnull final R event); @Nonnull @CheckReturnValue static LifecycleTransformer<T> bind(@Nonnull final Observable<R> lifecycle); @Nonnull @CheckReturnValue static LifecycleTransformer<T> bind(@Nonnull Observable<R> lifecycle,
                                                      @Nonnull final Function<R, R> correspondingEvents); }
RxLifecycle { @Nonnull @CheckReturnValue public static <T, R> LifecycleTransformer<T> bind(@Nonnull final Observable<R> lifecycle) { return new LifecycleTransformer<>(lifecycle); } private  RxLifecycle(); @Nonnull @CheckReturnValue static LifecycleTransformer<T> bindUntilEvent(@Nonnull final Observable<R> lifecycle,
                                                                @Nonnull final R event); @Nonnull @CheckReturnValue static LifecycleTransformer<T> bind(@Nonnull final Observable<R> lifecycle); @Nonnull @CheckReturnValue static LifecycleTransformer<T> bind(@Nonnull Observable<R> lifecycle,
                                                      @Nonnull final Function<R, R> correspondingEvents);  }