Class RxControllerLifecycle


  • public class RxControllerLifecycle
    extends Object
    • Constructor Detail

      • RxControllerLifecycle

        public RxControllerLifecycle()
    • 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 of RxLifecycleAndroid.bindFragment(Observable).
        Parameters:
        lifecycle - the lifecycle sequence of a Controller
        Returns:
        a reusable ObservableTransformer that unsubscribes the source during the Controller lifecycle