ShellPreferencesRepository
Where ShellSettings live.
ShellHost takes an implementation from the app, so an app that keeps its settings elsewhere adapts that store instead of keeping two, and tests pass an InMemoryShellPreferencesRepository. Without one, ShellHost uses ShellPreferencesRepository (context, defaults), a DataStore of its own.
An implementation provides settings and update; every setter below is written on update. A setting nobody chose reads as defaults.
Inheritors
Properties
The app's defaults: what a setting nobody chose reads as, and what resetDeveloperOptions returns to. The Toolkit's own defaults unless the app declared its own.
The settings last read in this process, if any, so an activity recreated by a rotation starts from them instead of waiting a frame for the store.
The current settings, then every change.
Functions
Forgets every developer option, so the shell is again as the app declares it in defaults. Every ShellSettings value is a developer option; the person's own preferences live elsewhere and are not touched.
Replaces the settings with transform applied to the current ones, atomically.