PrefsAppStateBackupDigestStore

SharedPreferences-backed AppStateBackupDigestStore. Holds the SHA-256 of the last app-state blob successfully uploaded, so AppStateCloudBackupCoordinator skips the network round-trip when nothing changed. The digest is not secret (it's a hash of already-encrypted-at-rest state), so plain prefs is fine.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
open override fun clear()

Drop the recorded digest (#246) — used when the cloud blob is deleted so a later re-enable re-uploads instead of the hash-guard skipping an "already-uploaded" blob.

Link copied to clipboard
open override fun get(): String?
Link copied to clipboard
open override fun put(digest: String)