Package-level declarations
Types
A subclass of IOException that indicates that the file could not be de-serialized due to data format corruption. This exception should not be thrown when the IOException is due to a transient IO issue or permissions issue.
Interface for migrations to DataStore. Methods on this migration (shouldMigrate, migrate and cleanUp) may be called multiple times, so their implementations must be idempotent. These methods may be called multiple times if DataStore encounters issues when writing the newly migrated data to disk or if any migration installed in the same DataStore throws an Exception.
DataStore provides a safe and durable way to store small amounts of data, such as preferences and application state. It does not support partial updates: if any field is modified, the whole object will be serialized and persisted to disk. If you want partial updates, consider the Room API (SQLite).
Public factory for creating DataStore instances.
Public factory for creating DataStore instances.
The Java IO File version of the Storage
Common IOException to be defined in jvm and native code.
Common IOException mapped to a custom exception class in native code.
The serializer determines the on-disk format and API for accessing it.
StorageConnection provides a way to read and write a particular type
The scope used for a write transaction.