savedstate

Enables pluggable components that save UI state across process death and restore it on restart, offering simple dependency setup and a concise API for state persistence.

JVMKotlin/NativeWasmJS
GitHub stars5911
Authorsandroidx
Open issues
LicenseApache License 2.0
Creation datealmost 6 years ago

Last activity4 months ago
Latest release1.4.0 (4 months ago)

Savedstate

Write pluggable components that save the UI state when a process dies, and restore it when the process restarts.

[User Guide]

[API Reference]

Declaring dependencies

To add a dependency on Savedstate, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Kotlin

dependencies {
    // Java language implementation
    implementation("androidx.savedstate:savedstate:1.4.0")

    // Kotlin
    implementation("androidx.savedstate:savedstate-ktx:1.4.0")
}
Groovy
dependencies {
    // Java language implementation
    implementation "androidx.savedstate:savedstate:1.4.0"

    // Kotlin
    implementation "androidx.savedstate:savedstate-ktx:1.4.0"
}

For more information about dependencies, see Add build dependencies.

Issue tracker

Issue Tracker

JVMKotlin/NativeWasmJS
GitHub stars5911
Authorsandroidx
Open issues
LicenseApache License 2.0
Creation datealmost 6 years ago

Last activity4 months ago
Latest release1.4.0 (4 months ago)

Savedstate

Write pluggable components that save the UI state when a process dies, and restore it when the process restarts.

[User Guide]

[API Reference]

Declaring dependencies

To add a dependency on Savedstate, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Kotlin

dependencies {
    // Java language implementation
    implementation("androidx.savedstate:savedstate:1.4.0")

    // Kotlin
    implementation("androidx.savedstate:savedstate-ktx:1.4.0")
}
Groovy
dependencies {
    // Java language implementation
    implementation "androidx.savedstate:savedstate:1.4.0"

    // Kotlin
    implementation "androidx.savedstate:savedstate-ktx:1.4.0"
}

For more information about dependencies, see Add build dependencies.

Issue tracker

Issue Tracker