Skip to content
On this page

Measurement Modes

The SDK supports two measurements modes - face measurements and finger measurements.

Face Measurement

A face measurement is performed by facing the front (selfie) camera.

TypeScript
import { 
    SessionBuilder
} from 'binah-react-native-sdk';

try { 
    const session = await SessionBuilder.faceSession({licenseKey: "<ENTER_YOUR_LICENSE_KEY>"});
} catch (e) {
    const exception = (e as HealthMonitorException)
    console.log(`Error: ${exception?.code}`);
}

Finger Measurement

Deprecation Warning

Finger measurements are deprecated and will be removed in future versions of Binah.ai's SDK.

A finger measurement is performed by covering the rear camera of a device with a finger.

TypeScript
import { 
    SessionBuilder
} from 'binah-react-native-sdk';

try { 
    const session = await SessionBuilder.fingerSession({licenseKey: "<ENTER_YOUR_LICENSE_KEY>"});
} catch (e) {
    const exception = (e as HealthMonitorException)
    console.log(`Error: ${exception?.code}`);
}