Persisted

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Persisted(val key: String = "")

Marks a property as persisted but NOT shown in UI.

Use for internal state like timestamps, counters, cached values.

Usage:

@Persisted
val lastSyncTime: Long = 0L

@Persisted(key = "hidden_apps")
val hiddenApps: Set<String> = emptySet()

Properties

Link copied to clipboard
val key: String

Stable persistence key. If empty, defaults to snake_case of property name.