Package 

Class AndroidScheduler

  • All Implemented Interfaces:
    io.objectbox.reactive.Scheduler

    
    public class AndroidScheduler
    extends Handler implements Scheduler
                        

    A Looper-based Scheduler implementation, see mainThread for most common usage.

    • Constructor Summary

      Constructors 
      Constructor Description
      AndroidScheduler(Looper looper) If you run your own Looper, you can create a custom Scheduler using it.
    • Method Summary

      Modifier and Type Method Description
      static synchronized Scheduler mainThread() Returns a Scheduler that runs tasks on Android's main thread.
      <T> void run(@NonNull() RunWithParam<T> runnable, @NonNull() T param)
      • Methods inherited from class android.os.Handler

        createAsync, dispatchMessage, dump, getLooper, getMessageName, handleMessage, hasCallbacks, hasMessages, obtainMessage, post, postAtFrontOfQueue, postAtTime, postDelayed, removeCallbacks, removeCallbacksAndMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
      • Methods inherited from class io.objectbox.reactive.Scheduler

        run
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AndroidScheduler

        AndroidScheduler(Looper looper)
        If you run your own Looper, you can create a custom Scheduler using it.
    • Method Detail

      • mainThread

         static synchronized Scheduler mainThread()

        Returns a Scheduler that runs tasks on Android's main thread.