getSecurityLevel()
ts
function getSecurityLevel(options?): Promise<null | SECURITY_LEVEL>Returns the security level supported by the library on the current device.
Parameters
• options?: AccessControlOption
A keychain options object.
Returns
Promise<null | SECURITY_LEVEL>
Resolves to a SECURITY_LEVEL when supported, otherwise null.
Platform
Android
Example
typescript
const securityLevel = await Keychain.getSecurityLevel();
console.log('Security Level:', securityLevel);