In the last lesson, you learned to save the state using the rememberSaveable function. rememberSaveable automatically saves values that can be added to a Bundle object, including primitives like Int or simple objects like String. For other values, you’d create a custom saver object and use it to save the state.
In this lesson, you’ll learn about the Parcelize interface and use it to create objects that can be added to the Bundle object. You’ll create custom saver objects and learn how to use them to persist state across configuration changes.
Time to dig in for more!
See forum comments
This content was released on Sep 10 2024. The official support period is 6-months
from this date.
In this lesson, you’ll 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.