Class ShadowLegacyMessage


  • @Implements(value=android.os.Message.class,
                isInAndroidSdk=false)
    public class ShadowLegacyMessage
    extends ShadowMessage
    The shadow Message for LooperMode.Mode.LEGACY.

    In LooperMode.Mode.LEGACY, each Message is associated with a Runnable posted to the Scheduler.

    • Constructor Detail

      • ShadowLegacyMessage

        public ShadowLegacyMessage()
    • Method Detail

      • recycle

        @Implementation(maxSdk=20)
        protected void recycle()
        Hook to unscheduled the callback when the message is recycled. Invokes unschedule() and then calls through to Message.recycle() on the real object.
      • setNext

        public void setNext​(Message next)
        Description copied from class: ShadowMessage
        Convenience method to provide setter access to the private field Message.next.

        Only supported in LooperMode.Mode.LEGACY

        Specified by:
        setNext in class ShadowMessage
        Parameters:
        next - the new next message for the current message.
        See Also:
        ShadowMessage.getNext()