identify static method

Future<void> identify({
  1. IdentificationCallback? onComplete,
  2. IdentificationFlowOptions? options,
})

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 fails
  • options: 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,
  );
}