Class ShadowPausedMessageQueue

    • Constructor Detail

      • ShadowPausedMessageQueue

        public ShadowPausedMessageQueue()
    • Method Detail

      • __constructor__

        @Implementation
        protected void __constructor__​(boolean quitAllowed)
      • nativeDestroy

        @Implementation(maxSdk=17)
        protected void nativeDestroy()
      • nativeDestroy

        @Implementation(minSdk=18,
                        maxSdk=19)
        protected static void nativeDestroy​(int ptr)
      • nativeDestroy

        @Implementation(minSdk=20)
        protected static void nativeDestroy​(long ptr)
      • nativePollOnce

        @Implementation(maxSdk=17)
        protected void nativePollOnce​(int ptr,
                                      int timeoutMillis)
      • nativePollOnce

        @Implementation(minSdk=18,
                        maxSdk=22)
        protected static void nativePollOnce​(Object ptr,
                                             Object timeoutMillis)
      • nativePollOnce

        @Implementation(minSdk=23)
        protected void nativePollOnce​(long ptr,
                                      int timeoutMillis)
      • nativeWake

        @Implementation(maxSdk=17)
        protected void nativeWake​(int ptr)
      • nativeWake

        @Implementation(minSdk=18,
                        maxSdk=19)
        protected static void nativeWake​(Object ptr)
      • nativeWake

        @Implementation(minSdk=20)
        protected static void nativeWake​(long ptr)
      • nativeIsPolling

        @Implementation(minSdk=23)
        protected static boolean nativeIsPolling​(long ptr)
      • isIdle

        @Implementation(minSdk=23)
        public boolean isIdle()
        Exposes the API23+_isIdle method to older platforms
      • internalGetSize

        public int internalGetSize()
        Internal method to get the number of entries in the MessageQueue.

        Do not use, will likely be removed in a future release.

      • reset

        public void reset()
        Description copied from class: ShadowMessageQueue
        Reset the messageQueue state. Should not be called by tests - it intended for use by the Robolectric framework.
        Specified by:
        reset in class ShadowMessageQueue
      • getScheduler

        public org.robolectric.util.Scheduler getScheduler()
        Description copied from class: ShadowMessageQueue
        Return this queue's Scheduler.

        Only supported in LooperMode.Mode.LEGACY.

        Specified by:
        getScheduler in class ShadowMessageQueue
      • setScheduler

        public void setScheduler​(org.robolectric.util.Scheduler scheduler)
        Description copied from class: ShadowMessageQueue
        Set this queue's Scheduler.

        Only supported in LooperMode.Mode.LEGACY.

        Specified by:
        setScheduler in class ShadowMessageQueue