Interface BiometricManager

interface BiometricManager {
    enrollBiometric(authenticators?: BiometricAuthenticator[]): Promise<boolean>;
    getBiometricStatus(authenticators?: BiometricAuthenticator[]): BiometricStatus;
}

Methods

  • Prompts the user to register credentials for given authenticators. If user already enrolled then returns a promise without any user interaction.

    Note: This operation requires the user interaction, consider using ActivityManager.runUserInteraction to ensure that consequent UI-related operations are suspended until this one is completed.

    Parameters

    Returns Promise<boolean>

    true if biometric enrollment succeeded, or false otherwise.