(#) androidx.compose.runtime:runtime-saveable-android
Name
: Compose Saveable
Description
: Compose components that allow saving and restoring the local ui state
License
: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
Vendor
: Jetpack Compose
Identifier
: androidx.compose.runtime.saveable
Feedback
: https://issuetracker.google.com/issues/new?component=612128
Min
: Lint 8.0 and 8.1
Compiled
: Lint 8.7+
Artifact
: androidx.compose.runtime:runtime-saveable-android:1.9.0-alpha01
(##) Included Issues
|Issue Id |Issue Description |
|------------------------------------------------------------------------|------------------------------------------------------------------------------------------|
|[RememberSaveableSaverParameter](RememberSaveableSaverParameter.md.html)|`Saver` objects should be passed to the saver parameter, not the vararg `inputs` parameter|
(##) Including
!!!
This is not a built-in check. To include it, add the below dependency
to your project.
```
// build.gradle.kts
implementation("androidx.compose.runtime:runtime-saveable-android:1.9.0-alpha01")
// build.gradle
implementation 'androidx.compose.runtime:runtime-saveable-android:1.9.0-alpha01'
// build.gradle.kts with version catalogs:
implementation(libs.runtime.saveable.android)
# libs.versions.toml
[versions]
runtime-saveable-android = "1.9.0-alpha01"
[libraries]
# For clarity and text wrapping purposes the following declaration is
# shown split up across lines, but in TOML it needs to be on a single
# line (see https://github.com/toml-lang/toml/issues/516) so adjust
# when pasting into libs.versions.toml:
runtime-saveable-android = {
module = "androidx.compose.runtime:runtime-saveable-android",
version.ref = "runtime-saveable-android"
}
```
1.9.0-alpha01 is the version this documentation was generated from;
there may be newer versions available.
NOTE: These lint checks are **also** made available separate from the main library.
You can also use `androidx.compose.runtime:runtime-saveable-lint:1.9.0-alpha01`.
(##) Changes
* 1.5.0: First version includes RememberSaveableSaverParameter.
(##) Version Compatibility
There are multiple older versions available of this library:
| Version | Date | Issues | Compatible | Compiled | Requires |
|-------------------:|----------|-------:|------------|--------------:|---------:|
| 1.9.0-alpha01|2025/04/23| 1| Yes| 8.7+|8.0 and 8.1|
| 1.8.0|2025/04/23| 1| Yes| 8.7+|8.0 and 8.1|
| 1.7.8|2025/02/12| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.7.7|2025/01/29| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.7.6|2024/12/11| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.7.5|2024/10/30| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.7.4|2024/10/16| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.7.3|2024/10/02| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.7.2|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.7.1|2024/09/10| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.7.0|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.8|2024/06/12| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.7|2024/05/01| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.6|2024/04/17| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.5|2024/04/03| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.4|2024/03/20| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.3|2024/03/06| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.2|2024/02/21| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.1|2024/02/07| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.6.0|2024/01/24| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.5.4|2023/10/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.5.3|2023/10/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.5.2|2023/09/27| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.5.1|2023/09/06| 1| Yes| 8.0 and 8.1|8.0 and 8.1|
| 1.5.0|2023/08/09| 1| Yes| 8.0 and 8.1|8.0 and 8.1|