July 2, 2019
androidx.savedstate:savedstate:1.0.0-rc01 is released. The commits included in this version can be found here.
- Fixed incorrect proguard rule (b/132655499)
May 7, 2019
androidx.savedstate:savedstate:1.0.0-beta01 is released. The commits included in this version can be found here.
March 13, 2019
androidx.savedstate:savedstate:1.0.0-alpha02 is released.
androidx.savedstate:savedstate combines artifacts
androidx.savedstate:savedstate-common into one artifact, because it was decided to simplify savedstate infrastructure and remove generics from
SavedStateRegistry. Thus, there is no need for separate modules.
The full list of commits included in this version can be found here.
SavedStateRegistry.runOnNextRecreaction(Class<? extends AutoRecreated> clazz )was added. The given class will be instantiated and the method
AutoRecreated.onRecreatedwill be run when the owning component restarted.
- Generics removed from
- AbstractSavedStateRegistry & BundlableSavedStateRegistry are removed, use simple
BundleSavedStateRegistryOwneris renamed to
December 17, 2018
This is the first release of
androidx.savedstate is a new set of alpha APIs that allow developers to plugin components to the restore / saveInstanceState process. The main entry point of the API is
SavedStateRegistry<T>, which provides a way to retrieve previously savedstate via
consumeRestoredStateForKey and register a callback to
registerSavedStateProvider to provide a savedstate once system requests it.