Package 

Interface ComposerStateSaver


  • 
    public interface ComposerStateSaver
    
                        

    Abstraction for persisting and restoring message composer state across process death.

    The controller interacts with this interface only — no Android framework imports required.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit saveAttachments(List<Attachment> attachments) Save the attachments from the composer.
      abstract List<Attachment> restoreAttachments() Restores the attachments to the composer.
      abstract Unit clear() Clears the stored state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • saveAttachments

         abstract Unit saveAttachments(List<Attachment> attachments)

        Save the attachments from the composer.

        Implementations should be cheap to call frequently — this is invoked on every change to the attachment list.

      • clear

         abstract Unit clear()

        Clears the stored state.