Storage
public interface Storage<T extends Object>
FileStorage |
The Java IO File version of the Storage |
OkioStorage |
OKIO implementation of the Storage interface, providing cross platform IO using the OKIO library. |
WebStorage |
Storage provides a way to create StorageConnections that allow read and write a particular type
Implementers provide the specifics of how and where the data is stored.
Summary
Public methods |
|
|---|---|
abstract @NonNull StorageConnection<@NonNull T> |
Creates a storage connection which allows reading and writing to the underlying storage. |
Public methods
createConnection
abstract @NonNull StorageConnection<@NonNull T> createConnection()
Creates a storage connection which allows reading and writing to the underlying storage.
Should be closed after usage.
| Throws | |
|---|---|
androidx.datastore.core.IOException |
Unrecoverable IO exception when trying to access the underlying storage. |