SqlDelightStatusMaintenanceStore

class SqlDelightStatusMaintenanceStore(queries: WalletPersistenceQueries, walletId: String)

Keeps the foreground opt-in and the worker's inventory cursor in the existing wallet.

Constructors

Link copied to clipboard
constructor(queries: WalletPersistenceQueries, walletId: String)

Types

Link copied to clipboard
object Companion

Admission for a cold operation on the existing encrypted database.

Link copied to clipboard
data class Enrollment(val grantId: String?)
Link copied to clipboard
class Session

All status writes and cursor advances are fenced by this grant.

Functions

Link copied to clipboard
fun enable()

Activates consent and creates a grant only when there is no active grant.

Link copied to clipboard
fun pause()

Keeps an existing opt-in while invalidating its grant.

Link copied to clipboard

Reads the current opt-in. Null means there is no enrollment.

Link copied to clipboard
fun retire()

Retires the grant and forgets the opt-in and saved cursor.