miha-x64
09/27/2017, 5:12 PMclass ParcelSomething(val something: Something) : Parcelable {...
, where Something
is not parcelable itself?damian
09/27/2017, 5:17 PMCustomParceler
annotation in the KEEP, but it doesn't look like it's been implemented [yet]: https://github.com/Kotlin/KEEP/blob/master/proposals/extensions/android-parcelable.md#per-property-and-per-type-parcelersmiha-x64
09/27/2017, 5:17 PMdamian
09/27/2017, 5:18 PMParcelable
on arbitrary existing classes. It can only do so for your own classes annotated with @Parcelize
.Parceler
in your companion object if you only need to parcel the whole class and not define them generally on a per-type basis: https://github.com/Kotlin/KEEP/blob/master/proposals/extensions/android-parcelable.md#custom-parcelables