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
emitFinishQrit is only emitted by thefacephi-sdk-providerdue to the finish of theQrWidget; thewidgetFinishof internal widgets via QR (Selphi/SelphID) does not emit it.
Example
Last updated