Class ShadowLegacyMessageQueue

java.lang.Object
org.robolectric.shadows.ShadowMessageQueue
org.robolectric.shadows.ShadowLegacyMessageQueue

@Implements(value=android.os.MessageQueue.class,
            isInAndroidSdk=false)
public class ShadowLegacyMessageQueue
extends ShadowMessageQueue
The shadow MessageQueue for LooperMode.Mode.LEGACY.

In LooperMode.Mode.LEGACY Robolectric puts Messages into the scheduler queue instead of sending them to be handled on a separate thread. Messages that are scheduled to be dispatched can be triggered by calling ShadowLooper.idleMainLooper().

See Also:
ShadowLooper