gracePeriodSeconds property

int gracePeriodSeconds
final

The number of seconds after the last device unlock during which authentication is skipped automatically.

On Android this maps directly to the Keystore key validity window, which is enforced by the OS at the hardware level. On iOS it is approximated using a Keychain timestamp recorded after each successful biometric prompt.

Set to 0 to always require authentication (equivalent to alwaysRequire = true).

Defaults to 30.

Implementation

final int gracePeriodSeconds;