For the complete documentation index, see llms.txt. This page is also available as Markdown.

emitFinishQr

QR flow completion signal.

Details

It is emitted when calling stopQr after finishing the QR flow on the mobile device.

Event: emitFinishQr

Type: FacephiSdkProviderCustomEvent<FinishQr> | CustomEvent<FinishQr>

Syntax

provider.addEventListener('emitFinishQr', onEmitFinishQr);

Received object

detail: {
  isDesktop: boolean
}

Description

Allows the logic to continue when the capture on the mobile device has finished.

In a QR flow, the capture occurs on the mobile device; when your Integration calls stopQr (e.g. in the last extractionFinish), the event is emitted on both devices. Since the event is received on both, use detail.isDesktop to run your logic in the appropriate environment (e.g. only on desktop): if (detail.isDesktop) { … }.

Considerations

  • emitFinishQr it is only emitted by the facephi-sdk-provider due to the finish of the QrWidget; the widgetFinish of internal widgets via QR (Selphi/SelphID) does not emit it.


Example

Last updated