RxJava Android



rx.android.schedulers
Class AndroidSchedulers

java.lang.Object
  extended by rx.android.schedulers.AndroidSchedulers

public class AndroidSchedulers
extends java.lang.Object

Schedulers that have Android specific functionality


Method Summary
static rx.Scheduler handlerThread(android.os.Handler handler)
          Scheduler which uses the provided Handler to execute an action
static rx.Scheduler mainThread()
          Scheduler which will execute an action on the main Android UI thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

handlerThread

public static rx.Scheduler handlerThread(android.os.Handler handler)
Scheduler which uses the provided Handler to execute an action

Parameters:
handler - The handler that will be used when executing the action
Returns:
A handler based scheduler

mainThread

public static rx.Scheduler mainThread()
Scheduler which will execute an action on the main Android UI thread.

Returns:
A Main Looper based scheduler