Class ShadowPausedMessage
java.lang.Object
org.robolectric.shadows.ShadowMessage
org.robolectric.shadows.ShadowPausedMessage
@Implements(value=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 ShadowMessage
ShadowMessage.Picker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNext()Convenience method to provide getter access to the private fieldMessage.next.protected Handlerprotected longgetWhen()voidExposes the package-privateMessage.recycleUnchecked()voidConvenience method to provide setter access to the private fieldMessage.next.voidStores theRunnableinstance that has been scheduled to invoke this message.Methods inherited from class ShadowMessage
reset
-
Constructor Details
-
ShadowPausedMessage
public ShadowPausedMessage()
-
-
Method Details
-
getWhen
-
recycleUnchecked
Description copied from class:ShadowMessageExposes the package-privateMessage.recycleUnchecked()- Specified by:
recycleUncheckedin classShadowMessage
-
setScheduledRunnable
Description copied from class:ShadowMessageStores theRunnableinstance that has been scheduled to invoke this message. This is called when the message is enqueued byShadowLegacyMessageQueue.enqueueMessage(Message, long)and is used when the message is recycled to ensure that the correctRunnableinstance is removed from the associated scheduler.- Specified by:
setScheduledRunnablein classShadowMessage- Parameters:
r- theRunnableinstance 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:ShadowMessageConvenience method to provide getter access to the private fieldMessage.next.Only supported in
LooperMode.Mode.LEGACY- Specified by:
getNextin classShadowMessage- Returns:
- The next message in the current message chain.
- See Also:
-
setNext
Description copied from class:ShadowMessageConvenience method to provide setter access to the private fieldMessage.next.Only supported in
LooperMode.Mode.LEGACY- Specified by:
setNextin classShadowMessage- Parameters:
next- the new next message for the current message.- See Also:
-
getTarget
-