public sealed class StorageDomain

Known direct subclasses
StorageDomain.BinaryFile

Targets local raw binary files stored within internal app storage.

StorageDomain.CustomData

Targets data that device actions of your own seed and verify, such as a restore credential that only the app's code can create and read.

StorageDomain.DataStorePreference

Targets a preference of an on-device Preferences DataStore.

StorageDomain.Database

Targets structured SQLite/Room database records.

StorageDomain.ExcludedData

Targets data that the restore doesn't bring back, such as data that the app's backup rules exclude.

StorageDomain.Preference

Targets on-device SharedPreferences XML files.

StorageDomain.TextFile

Targets local raw text files stored within internal app storage.


Defines target data coordinates in the device sandbox that are seeded and verified.

Provides strongly-typed, compile-time safe data structures for zero-boilerplate testing. The framework uses these to automatically drive the bundled storage actions, or the actions of a CustomData.

Note: This sealed class is open to future additions. Consumers should use a non-exhaustive 'when' pattern-matching approach (incorporating an explicit 'else' branch) to ensure binary compatibility when new subclasses are introduced.

Summary

Nested types

public final class StorageDomain.BinaryFile extends StorageDomain

Targets local raw binary files stored within internal app storage.

public final class StorageDomain.CustomData extends StorageDomain

Targets data that device actions of your own seed and verify, such as a restore credential that only the app's code can create and read.

Targets a preference of an on-device Preferences DataStore.

public final class StorageDomain.Database extends StorageDomain

Targets structured SQLite/Room database records.

public final class StorageDomain.ExcludedData extends StorageDomain

Targets data that the restore doesn't bring back, such as data that the app's backup rules exclude.

public final class StorageDomain.Preference extends StorageDomain

Targets on-device SharedPreferences XML files.

public final class StorageDomain.TextFile extends StorageDomain

Targets local raw text files stored within internal app storage.

Protected constructors

Protected constructors

StorageDomain

protected StorageDomain()