StorageDomain.ExcludedData


class StorageDomain.ExcludedData : StorageDomain


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

The flow seeds domain before the backup, and verifies after the restore that the preference key, the database row with the primary key value, or the file is absent. A flow needs a restored domain as well, to verify that the restore happened: a flow with only excluded data fails with an IllegalArgumentException.

Summary

Public constructors

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

StorageDomain

data to seed and then expect absent: a Preference or DataStorePreference with a value, a Database, a TextFile or a BinaryFile.

Public constructors

ExcludedData

Added in 1.0.0-alpha04
ExcludedData(domain: StorageDomain)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

domain

Added in 1.0.0-alpha04
val domain: StorageDomain

data to seed and then expect absent: a Preference or DataStorePreference with a value, a Database, a TextFile or a BinaryFile. Any other domain fails construction with an IllegalArgumentException.