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

stopQr

Stops the QR flow in the desktop view.

Details

Stops the QR flow on desktop once capture has finished on the mobile device.

Syntax: stopQr() => Promise<void>

Syntax

await provider.stopQr();

Description

Properly closes the QR session in the source browser. Requires having enabled the property qr.

Considerations

This method should be called when the mobile capture flow has finished.

To detect on desktop that the mobile flow has finished and continue with other logic, use emitTrackStatus with FacephiComponent.QrWidget and ComponentStatus.finish.


Example

import { ComponentStatus, FacephiComponent } from '@facephi/sdk-web-wc';

<facephi-sdk-provider
    apikey={process.env.FACEPHI_SDK_APIKEY}
    qr={true}
>
    <facephi-selphid-widget onExtractionFinish={handleExtractionFinish} />
</facephi-sdk-provider>

Last updated