identify static method
Simplified single callback API (similar to MAUI IdentificationFlow.Run)
Presents the identification flow and calls the provided callback once with the result.
Parameters:
onComplete: Callback invoked when identification completes or failsoptions: Optional identification settings to customize the flow behavior
Example:
await SmartfaceHostedFlow.identify(
onComplete: (identified, customId, confidence, distance) {
if (identified) {
print('User identified: $customId');
} else {
print('No match found');
}
},
options: IdentificationFlowOptions(
livenessEnabled: true,
securityLevel: 0.75,
),
);
Implementation
static Future<void> identify({
IdentificationCallback? onComplete,
IdentificationFlowOptions? options,
}) async {
return IdentificationFlow.identify(
onComplete: onComplete,
options: options,
);
}