Class ShadowPausedLooper

java.lang.Object
org.robolectric.shadows.ShadowLooper
org.robolectric.shadows.ShadowPausedLooper

@Implements(value=android.os.Looper.class,
            isInAndroidSdk=false)
public final class ShadowPausedLooper
extends ShadowLooper
The shadow Looper for LooperMode.Mode.PAUSED.

This shadow differs from the legacy ShadowLegacyLooper in the following ways:\ - Has no connection to Scheduler. Its APIs are standalone - The main looper is always paused. Posted messages are not executed unless idle() is called. - Just like in real Android, each looper has its own thread, and posted tasks get executed in that thread. - - There is only a single SystemClock value that all loopers read from. Unlike legacy behavior where each Scheduler kept their own clock value.

This class should not be used directly; use ShadowLooper instead.