@Implements(value=android.os.Message.class, isInAndroidSdk=false) public class ShadowPausedMessage extends ShadowMessage
The shadow Message
for LooperMode.Mode.PAUSED
.
This class should not be referenced directly. Use ShadowMessage
instead.
ShadowMessage.Picker
Constructor and Description |
---|
ShadowPausedMessage() |
Modifier and Type | Method and Description |
---|---|
Message |
getNext()
Convenience method to provide getter access to the private field
Message.next . |
void |
recycleUnchecked()
Exposes the package-private
Message.recycleUnchecked() |
void |
setNext(Message next)
Convenience method to provide setter access to the private field
Message.next . |
void |
setScheduledRunnable(Runnable r)
Stores the
Runnable instance that has been scheduled to invoke this message. |
reset
@Implementation(minSdk=21) public void recycleUnchecked()
ShadowMessage
Exposes the package-private Message.recycleUnchecked()
recycleUnchecked
in class ShadowMessage
public void setScheduledRunnable(Runnable r)
ShadowMessage
Stores the Runnable
instance that has been scheduled to invoke this message. This is called when the message is enqueued by ShadowLegacyMessageQueue.enqueueMessage(android.os.Message, long)
and is used when the message is recycled to ensure that the correct Runnable
instance is removed from the associated scheduler.
setScheduledRunnable
in class ShadowMessage
r
- the Runnable
instance that is scheduled to trigger this message. #if ($api >= 21) * @see #recycleUnchecked() #else * @see #recycle() #end
Only supported in LooperMode.Mode.LEGACY
.
public Message getNext()
ShadowMessage
Convenience method to provide getter access to the private field Message.next
.
Only supported in LooperMode.Mode.LEGACY
getNext
in class ShadowMessage
ShadowMessage.setNext(Message)
public void setNext(Message next)
ShadowMessage
Convenience method to provide setter access to the private field Message.next
.
Only supported in LooperMode.Mode.LEGACY
setNext
in class ShadowMessage
next
- the new next message for the current message.ShadowMessage.getNext()