Class ShadowMessageQueue

    • Constructor Detail

      • ShadowMessageQueue

        public ShadowMessageQueue()
    • Method Detail

      • getScheduler

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

        Only supported in LooperMode.Mode.LEGACY.

      • setScheduler

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

        Only supported in LooperMode.Mode.LEGACY.

      • getHead

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

        Only supported in LooperMode.Mode.LEGACY.

      • setHead

        public abstract void setHead​(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.