Package 

Object MessageData.Companion

    • Method Summary

      Modifier and Type Method Description
      final Saver<MessageData, Object> getSaver() Saver implementation for MessageData that converts it to a saveable format.
      • Methods inherited from class java.lang.Object

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

      • getSaver

         final Saver<MessageData, Object> getSaver()

        Saver implementation for MessageData that converts it to a saveable format. Use it to keep a message you own across configuration changes and process death: rememberSaveable(stateSaver = MessageData.Saver) { mutableStateOf(MessageData()) }.