You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would wish to use kotlinx's Serializable annotation to make my objects (and Screens) savable and recoverable.
I understand that now it works well with java.io.Serialzable and Parcelable.
Example:
To be used in class PostDetailsScreen(val post: Post): Screen{...}
// Doesnot work; (Can we make it work in future) @Serializable data class Post(val title: String)
// Works data class Post(val title: String): java.io.Serialzable
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would wish to use kotlinx's Serializable annotation to make my objects (and Screens) savable and recoverable.
I understand that now it works well with java.io.Serialzable and Parcelable.
Example:
To be used in
class PostDetailsScreen(val post: Post): Screen{...}
// Doesnot work; (Can we make it work in future)
@Serializable data class Post(val title: String)
// Works
data class Post(val title: String): java.io.Serialzable
Beta Was this translation helpful? Give feedback.
All reactions