Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.datastore.core

Interfaces

DataMigration

Interface for migrations to DataStore.

DataStore

DataStore provides a safe and durable way to store small amounts of data, such as preferences and application state.

Serializer

The serializer determines the on-disk format and API for accessing it.

Exceptions

CorruptionException

A subclass of IOException that indicates that the file could not be de-serialized due to data format corruption.