Package org.robolectric.shadows
Class ShadowMessageQueue
java.lang.Object
org.robolectric.shadows.ShadowMessageQueue
- Direct Known Subclasses:
ShadowLegacyMessageQueue,ShadowPausedMessageQueue
@Implements(value=android.os.MessageQueue.class,
shadowPicker=Picker.class)
public abstract class ShadowMessageQueue
extends Object
The shadow API for
MessageQueue.
Different shadow implementations will be used depending on the current
. See
invalid reference
LooperModeShadowLegacyMessageQueue and ShadowPausedMessageQueue for details.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe shadow Picker for this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MessagegetHead()Retrieves the current Message at the top of the queue.abstract org.robolectric.util.SchedulerReturn this queue's Scheduler.abstract voidreset()Reset the messageQueue state.abstract voidSets the current Message at the top of the queue.abstract voidsetScheduler(org.robolectric.util.Scheduler scheduler) Set this queue's Scheduler.
-
Constructor Details
-
ShadowMessageQueue
public ShadowMessageQueue()
-
-
Method Details
-
getScheduler
public abstract org.robolectric.util.Scheduler getScheduler()Return this queue's Scheduler.Only supported in
.invalid reference
LooperMode.Mode.LEGACY -
setScheduler
public abstract void setScheduler(org.robolectric.util.Scheduler scheduler) Set this queue's Scheduler.Only supported in
.invalid reference
LooperMode.Mode.LEGACY -
getHead
Retrieves the current Message at the top of the queue.Only supported in
.invalid reference
LooperMode.Mode.LEGACY -
setHead
Sets the current Message at the top of the queue.Only supported in
.invalid reference
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.
-