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

extractionTimeout

The capture time limit was reached.

Details

It is emitted when the widget cannot extract the document within the time configured in captureTimeout and captureRetries.

Event: extractionTimeout

Type: FacephiSelphidWidgetCustomEvent<ExtractionTimeoutEvent> | CustomEvent<ExtractionTimeoutEvent>

Syntax

selphid.addEventListener('extractionTimeout', onExtractionTimeout);

Received object

The payload is of type SelphidExtractionTimeoutDetail and is in event.detail.detail:

  • eventType (string): Emitted event type.

  • message (string): Brief Timeout description.

  • documentPresent (boolean): Indicates whether a document was detected during the attempt.

  • code (string): Associated error code.

Description

Indicates that document capture was not completed in time. By default, the widget shows an expiration view to the user.

With codeReader in mode mandatory, the same event is emitted if the code scanning budget is exhausted. In that case, retrying from timeoutErrorButtonClick resumes code scanning, not document capture.

Considerations

The payload is in event.detail.detail (see event format).

If captureTimeout or captureRetries is 0, this event is not emitted. The Timeout screen includes a button that triggers timeoutErrorButtonClick.

This event is emitted on each expired attempt and does not close the Flow. To limit the total number of attempts and detect when they are exhausted, use maxAttempts along with maxAttemptsExceeded.


Example

Last updated