Skip to main content
Version: 9.1.0

Function: getSecurityLevel()

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

const securityLevel = await Keychain.getSecurityLevel();
console.log('Security Level:', securityLevel);

Defined in

index.ts:356