LockdownModeSetting

fun ColumnScope.LockdownModeSetting(supported: Boolean, lockdownState: LockdownState, tokenInfo: LockdownTokenInfo?, connected: Boolean, containerColor: Color, onEnable: (passphrase: String, boots: Int, hours: Int, sessionMinutes: Int) -> Unit, onDisable: (passphrase: String) -> Unit, onLockNow: () -> Unit, modifier: Modifier = Modifier)(source)

Runtime lockdown-mode toggle for the security settings screen.

The switch and its dialogs are driven entirely by the latest lockdownState:

Visibility is gated on supported — the firmware-version capability from Capabilities.supportsLockdown (lockdown ships in firmware v2.8.0). lockdownState drives the switch position once a LockdownStatus arrives.