In this lesson, you’ve learned how to use the Parcelize interface to make data classes parcelable. This way you can persist their objects using the rememberSaveable function when a configuration change occurs. You have seen how to use the listSaver and mapSaver functions to convert an object to a set of values that can be added to the Bundle object. This makes it possible to save an object using the rememberSaveable function.
Jetpack Compose provides powerful tools like the Parcelize interface and thelistSaver and mapSaver functions that simplify common development tasks. By utilizing these features you can improve the user experience of your compose applications.
See forum comments
This content was released on Sep 10 2024. The official support period is 6-months
from this date.
Learn different ways of storing state during a configuration change.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.