availableTypes

fun availableTypes(context: Context): Set<UserAuthenticationType>

Returns the set of available policy-level authentication types, aligned with DeviceKeyPolicy. A type is considered available if the underlying device authenticator(s) exist:

  • DeviceCredential is available when the device is secured with PIN/Pattern/Password.

  • BiometryAny and BiometryCurrentSet are available when any biometric (weak or strong) is available.

  • UserPresence is available when either device credential or any biometric is available.