Class RxAndroidSchedulersHook



  • public class RxAndroidSchedulersHook
    extends Object
    • Constructor Detail

      • RxAndroidSchedulersHook

        public RxAndroidSchedulersHook()
    • Method Detail

      • getMainThreadScheduler

        public Scheduler getMainThreadScheduler()
        Scheduler to return from AndroidSchedulers.mainThread() or null if default should be used.

        This instance should be or behave like a stateless singleton.

      • onSchedule

        public Action0 onSchedule(Action0 action)
        Invoked before the Action is handed over to the scheduler. Can be used for wrapping/decorating/logging. The default is just a passthrough.
        Parameters:
        action - action to schedule
        Returns:
        wrapped action to schedule