runtime-saveable
Functions
  • SaveableStateRegistry
  • Saver
  • autoSaver
  • listSaver
  • mapSaver
Composable Functions
  • rememberSaveable
  • rememberSaveableStateHolder
  • rememberSerializable
Interfaces
  • SaveableStateHolder
  • SaveableStateRegistry
  • SaveableStateRegistry.Entry
  • Saver
  • SaverScope
Properties
  • LocalSaveableStateRegistry
Jetpack Compose / Compose Runtime / runtime-saveable / Functions / listSaver
Function

listSaver

View Markdown Open in ChatGPT Open in Claude

The Saver implementation which allows to represent your Original class as a list of Saveable values.

CodeRabbit

CodeRabbit

AI writes the code. CodeRabbit catches the slop.

AdTry CodeRabbit for Free
Robomori

Robomori

Run Android emulators and devices outside Android Studio.

AdTry Robomori
API

Examples

ListSaverSample

@Sampled
@Composable
fun ListSaverSample() {
    data class Size(val x: Int, val y: Int)

    val sizeSaver =
        listSaver<Size, Int>(save = { listOf(it.x, it.y) }, restore = { Size(it[0], it[1]) })
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free →

Content updated: 2026-11-04

autoSaver ← Previous mapSaver Next →

On this page

  • ListSaverSample
Reach Android developers Put your product in front of engineers building Android and KMP apps. Sponsor Composables