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 shadowMessageforLooperMode.Mode.PAUSED.This class should not be referenced directly. Use
ShadowMessageinstead.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowMessage
ShadowMessage.Picker
-
-
Constructor Summary
Constructors Constructor Description ShadowPausedMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagegetNext()Convenience method to provide getter access to the private fieldMessage.next.protected HandlergetTarget()protected longgetWhen()voidrecycleUnchecked()Exposes the package-privateMessage.recycleUnchecked()voidsetNext(Message next)Convenience method to provide setter access to the private fieldMessage.next.voidsetScheduledRunnable(Runnable r)Stores theRunnableinstance that has been scheduled to invoke this message.-
Methods inherited from class org.robolectric.shadows.ShadowMessage
reset
-
-
-
-
Method Detail
-
getWhen
@Implementation protected long getWhen()
-
recycleUnchecked
@Implementation(minSdk=21) public void recycleUnchecked()
Description copied from class:ShadowMessageExposes the package-privateMessage.recycleUnchecked()- Specified by:
recycleUncheckedin classShadowMessage
-
setScheduledRunnable
public void setScheduledRunnable(Runnable r)
Description copied from class:ShadowMessageStores theRunnableinstance 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 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
public Message 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:
ShadowMessage.setNext(Message)
-
setNext
public void setNext(Message next)
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:
ShadowMessage.getNext()
-
getTarget
@Implementation protected Handler getTarget()
-
-