Appearance
License
The Binah.ai SDK uses a licensing mechanism to protect against unauthorized usage, and to grant measurement permissions specified in Binah's license agreement.
License Types
Binah offers the license types:
Using the License Key
A valid license key must be provided in order to initiate a measurement session or activate a user.
Dart
try {
LicenseDetails licenseDetails = LicenseDetails("<ENTER_YOUR_LICENSE_KEY>");
Session? session = await FaceSessionBuilder()
.withImageDataListener(this)
.withVitalSignsListener(this)
.withSessionInfoListener(this)
.build(licenseDetails);
} on HealthMonitorException catch(e) {
print("Received Error. Domain: ${e.domain} Code: ${e.code}");
}
WARNING
The application must secure the license key and prevent it from being exposed to 3rd parties.
Receiving License Updates
The SDK sends a LicenseInfo object that contains:
- Offline Measurements Info - An object with information about offline measurements
- Activation ID - An object with the license activation information capabilities
The application can receive license-related messages by implementing onLicenseInfo
as part of SessionInfoListener
:
Dart
void onSessionStateChange(SessionState sessionState) {
// Receive session state updates
}
void onWarning(WarningData warningData) {
// Receive warnings
}
void onError(ErrorData errorData) {
// Receive errors
}
void onLicenseInfo(LicenseInfo licenseInfo) {
// Receive license info
}
void onEnabledVitalSigns(SessionEnabledVitalSigns enabledVitalSigns) {
// Receive the enabled vital signs for the session
}