Package org.robolectric.shadows
Class ShadowPausedMessage
java.lang.Object
org.robolectric.shadows.ShadowMessage
org.robolectric.shadows.ShadowPausedMessage
@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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowMessage
ShadowMessage.Picker
-
Constructor Summary
Constructors Constructor Description ShadowPausedMessage()
-
Method Summary
Modifier and Type Method Description Message
getNext()
Convenience method to provide getter access to the private fieldMessage.next
.void
recycleUnchecked()
Exposes the package-privateMessage.recycleUnchecked()
void
setNext(Message next)
Convenience method to provide setter access to the private fieldMessage.next
.void
setScheduledRunnable(Runnable r)
Stores theRunnable
instance that has been scheduled to invoke this message.
-
Constructor Details
-
ShadowPausedMessage
public ShadowPausedMessage()
-
-
Method Details
-
recycleUnchecked
Description copied from class:ShadowMessage
Exposes the package-privateMessage.recycleUnchecked()
- Specified by:
recycleUnchecked
in classShadowMessage
-
setScheduledRunnable
Description copied from class:ShadowMessage
Stores theRunnable
instance that has been scheduled to invoke this message. This is called when the message is enqueued byShadowLegacyMessageQueue.enqueueMessage(android.os.Message, long)
and is used when the message is recycled to ensure that the correctRunnable
instance is removed from the associated scheduler.- Specified by:
setScheduledRunnable
in classShadowMessage
- Parameters:
r
- theRunnable
instance that is scheduled to trigger this message.#if ($api >= 21) * @see #recycleUnchecked() #else * @see #recycle() #end
Only supported in
LooperMode.Mode.LEGACY
.
-
getNext
Description copied from class:ShadowMessage
Convenience method to provide getter access to the private fieldMessage.next
.Only supported in
LooperMode.Mode.LEGACY
- Specified by:
getNext
in classShadowMessage
- Returns:
- The next message in the current message chain.
- See Also:
ShadowMessage.setNext(Message)
-
setNext
Description copied from class:ShadowMessage
Convenience method to provide setter access to the private fieldMessage.next
.Only supported in
LooperMode.Mode.LEGACY
- Specified by:
setNext
in classShadowMessage
- Parameters:
next
- the new next message for the current message.- See Also:
ShadowMessage.getNext()
-