Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
Closeable |
Datastore common version of java.io.Closeable
|
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.
|
InterProcessCoordinator |
InterProcessCoordinator provides functionalities that support DataStore instances to coordinate the concurrent work running on multiple threads and multiple processes to guarantee its data consistency.
|
ReadScope |
The scope used for a read transaction.
|
Serializer |
The serializer determines the on-disk format and API for accessing it.
|
Storage |
Storage provides a way to create StorageConnections that allow read and write a particular type of data.
|
StorageConnection |
StorageConnection provides a way to read and write a particular type of data.
|
WriteScope |
The scope used for a write transaction.
|
Classes
Exceptions
CorruptionException |
A subclass of IOException that indicates that the file could not be de-serialized due to data format corruption.
|
IOException |
Common IOException to be defined in jvm and native code.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.datastore.core\n=======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/datastore/core/package-summary \"View this page in Kotlin\") \\|Java\n\nInterfaces\n----------\n\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Closeable](/reference/androidx/datastore/core/Closeable) | Datastore common version of java.io.Closeable |\n| [DataMigration](/reference/androidx/datastore/core/DataMigration) | Interface for migrations to DataStore. |\n| [DataStore](/reference/androidx/datastore/core/DataStore) | DataStore provides a safe and durable way to store small amounts of data, such as preferences and application state. |\n| [InterProcessCoordinator](/reference/androidx/datastore/core/InterProcessCoordinator) | InterProcessCoordinator provides functionalities that support DataStore instances to coordinate the concurrent work running on multiple threads and multiple processes to guarantee its data consistency. |\n| [ReadScope](/reference/androidx/datastore/core/ReadScope) | The scope used for a read transaction. |\n| [Serializer](/reference/androidx/datastore/core/Serializer) | The serializer determines the on-disk format and API for accessing it. |\n| [Storage](/reference/androidx/datastore/core/Storage) | Storage provides a way to create StorageConnections that allow read and write a particular type of data. |\n| [StorageConnection](/reference/androidx/datastore/core/StorageConnection) | StorageConnection provides a way to read and write a particular type of data. |\n| [WriteScope](/reference/androidx/datastore/core/WriteScope) | The scope used for a write transaction. |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------------------------------|----------------------------------------------------|\n| [CloseableKt](/reference/androidx/datastore/core/CloseableKt) | |\n| [DeviceProtectedDataStoreFile](/reference/androidx/datastore/core/DeviceProtectedDataStoreFile) | |\n| [FileStorage](/reference/androidx/datastore/core/FileStorage) | The Java IO File version of the Storage interface. |\n| [InterProcessCoordinatorKt](/reference/androidx/datastore/core/InterProcessCoordinatorKt) | |\n| [MultiProcessCoordinatorKt](/reference/androidx/datastore/core/MultiProcessCoordinatorKt) | |\n| [StorageConnectionKt](/reference/androidx/datastore/core/StorageConnectionKt) | |\n| [DataStoreFactory](/reference/androidx/datastore/core/DataStoreFactory) | Public factory for creating DataStore instances. |\n| [MultiProcessDataStoreFactory](/reference/androidx/datastore/core/MultiProcessDataStoreFactory) | |\n\nExceptions\n----------\n\n|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [CorruptionException](/reference/androidx/datastore/core/CorruptionException) | A subclass of IOException that indicates that the file could not be de-serialized due to data format corruption. |\n| [IOException](/reference/androidx/datastore/core/IOException) | Common IOException to be defined in jvm and native code. |"]]