Slide 63
Slide 63 text
SAVING STATE
MECHANISM
COMPREHENSIVE USAGE
Bundle
Store only a small information footprint that you need to rebuild the
entire screen state from the other available means, usually information
generated by user interactions
(inputed texts, actual page from a large list, actual list position, etc)
ViewModel
Store related-and-processed data for screen, acessed previously from a
single source of truth (Networking, Database, etc) behind a repository
Local Storage
Store data as soon you get it. Data format may not be UI-related at all,
and can be adapted for the UI at ViewModel or Repository level