Class RxControllerLifecycle
- java.lang.Object
-
- com.bluelinelabs.conductor.rxlifecycle2.RxControllerLifecycle
-
public class RxControllerLifecycle extends Object
-
-
Constructor Summary
Constructors Constructor Description RxControllerLifecycle()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> com.trello.rxlifecycle2.LifecycleTransformer<T>bindController(io.reactivex.Observable<ControllerEvent> lifecycle)Binds the given source to a Controller lifecycle.
-
-
-
Method Detail
-
bindController
public static <T> com.trello.rxlifecycle2.LifecycleTransformer<T> bindController(@NonNull io.reactivex.Observable<ControllerEvent> lifecycle)Binds the given source to a Controller lifecycle. This is the Controller version ofRxLifecycleAndroid.bindFragment(Observable).- Parameters:
lifecycle- the lifecycle sequence of a Controller- Returns:
- a reusable
ObservableTransformerthat unsubscribes the source during the Controller lifecycle
-
-