ShadowLegacyMessageQueue
, ShadowPausedMessageQueue
@Implements(value=android.os.MessageQueue.class, shadowPicker=Picker.class) public abstract class ShadowMessageQueue extends Object
MessageQueue
.
Different shadow implementations will be used depending on the current LooperMode
. See
ShadowLegacyMessageQueue
and ShadowPausedMessageQueue
for details.
Modifier and Type | Class | Description |
---|---|---|
static class |
ShadowMessageQueue.Picker |
The shadow Picker for this class.
|
Constructor | Description |
---|---|
ShadowMessageQueue() |
Modifier and Type | Method | Description |
---|---|---|
abstract Message |
getHead() |
Retrieves the current Message at the top of the queue.
|
abstract Scheduler |
getScheduler() |
Return this queue's Scheduler.
|
abstract void |
reset() |
Reset the messageQueue state.
|
abstract void |
setHead(Message msg) |
Sets the current Message at the top of the queue.
|
abstract void |
setScheduler(Scheduler scheduler) |
Set this queue's Scheduler.
|
public abstract Scheduler getScheduler()
Only supported in LooperMode.Mode.LEGACY
.
public abstract void setScheduler(Scheduler scheduler)
Only supported in LooperMode.Mode.LEGACY
.
public abstract Message getHead()
Only supported in LooperMode.Mode.LEGACY
.
public abstract void setHead(Message msg)
Only supported in LooperMode.Mode.LEGACY
.
public abstract void reset()