Package-level declarations

Types

Link copied to clipboard
sealed interface VaultState

Lifecycle of a process-wide SecureVault, surfaced as state your Compose UI is expected to render explicitly.

Properties

Link copied to clipboard
val LocalSecureVault: ProvidableCompositionLocal<<Error class: unknown class>>

CompositionLocal that exposes the currently-installed SecureVault to any composable in the tree below a ProvideSecureVault call.

Functions

Link copied to clipboard
fun ProvideSecureVault(vault: <Error class: unknown class>, content: @Composable () -> Unit)

Provides vault to the composition rooted at content via LocalSecureVault.

Link copied to clipboard

Two-way binding between a Compose MutableState and a single SecureVault key.

fun rememberSecureValue(vault: <Error class: unknown class>, key: String, default: String = ""): MutableState<String>

Overload that accepts an explicit vault instead of resolving it from LocalSecureVault. Useful for tests and for screens that bridge multiple namespaces.

Link copied to clipboard
fun rememberSecureVault(config: <Error class: unknown class>): State<VaultState>

Returns the lifecycle VaultState of a process-wide SecureVault for the given config.

fun rememberSecureVault(namespace: String, accessibility: <Error class: unknown class> = Accessibility.AfterFirstUnlock): State<VaultState>

Convenience overload — equivalent to rememberSecureVault(VaultConfig(namespace, accessibility)).