Alonso Ato Neyra
09/15/2021, 2:16 AMAlbert Chang
09/15/2021, 3:38 AMParcelable is Android-only. There's no such thing on desktop.Alonso Ato Neyra
09/15/2021, 4:18 AMAlonso Ato Neyra
09/15/2021, 4:18 AMephemient
09/15/2021, 4:26 AM@Parcelize writes a Parcelable implementation. it will not work on desktop.Cedrick Cooke
09/15/2021, 4:34 AM@Serializable might fill the gap.Alonso Ato Neyra
09/15/2021, 5:22 AMAlbert Chang
09/15/2021, 5:26 AMParcelable as rememberSavable doesn't actually save anything on desktop (because there's no configuration changes or restoration from process death). You can pass any type to rememberSavable on desktop.Albert Chang
09/15/2021, 5:27 AMAlonso Ato Neyra
09/15/2021, 5:49 AMAlbert Chang
09/15/2021, 6:02 AMParcelable and @Parcelize so that you can use them in your common module and you just need to apply kotlin-parcelize on your android module. See the official example.Arkadii Ivanov
09/15/2021, 7:21 AMArkadii Ivanov
09/15/2021, 7:30 AM