Class ShadowMessageQueue

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ShadowMessageQueue.Picker
      The shadow Picker for this class.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract android.os.Message getHead()
      Retrieves the current Message at the top of the queue.
      abstract org.robolectric.util.Scheduler getScheduler()
      Return this queue's Scheduler.
      abstract void reset()
      Reset the messageQueue state.
      abstract void setHead​(android.os.Message msg)
      Sets the current Message at the top of the queue.
      abstract void setScheduler​(org.robolectric.util.Scheduler scheduler)
      Set this queue's Scheduler.
      • Methods inherited from class java.lang.Object

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

      • ShadowMessageQueue

        public ShadowMessageQueue()
    • Method Detail

      • getScheduler

        public abstract org.robolectric.util.Scheduler getScheduler()
        Return this queue's Scheduler.

        Only supported in LooperMode.Mode.LEGACY.

      • setScheduler

        public abstract void setScheduler​(org.robolectric.util.Scheduler scheduler)
        Set this queue's Scheduler.

        Only supported in LooperMode.Mode.LEGACY.

      • getHead

        public abstract android.os.Message getHead()
        Retrieves the current Message at the top of the queue.

        Only supported in LooperMode.Mode.LEGACY.

      • setHead

        public abstract void setHead​(android.os.Message msg)
        Sets the current Message at the top of the queue.

        Only supported in LooperMode.Mode.LEGACY.

      • reset

        public abstract void reset()
        Reset the messageQueue state. Should not be called by tests - it intended for use by the Robolectric framework.