Id Capture Listener#

Defined in package com.scandit.datacapture.id.capture

IdCaptureListener#
interface IdCaptureListener

Added in version 6.2.0

Listener interface for id capture.

onObservationStarted(idCapture)#
void onObservationStarted(@NonNull IdCapture idCapture)

Added in version 6.2.0

Called when the listener starts observing the id capture instance.

onObservationStopped(idCapture)#
void onObservationStopped(@NonNull IdCapture idCapture)

Added in version 6.2.0

Called when the listener stops observing the id capture instance.

onIdCaptured(capture, session, frameData)#
void onIdCaptured(@NonNull IdCapture capture,
        @NonNull IdCaptureSession session,
        @NonNull FrameData frameData)

Added in version 6.2.0

Called whenever a document is recognized and parsed.

onErrorEncountered(capture, error, session, frameData)#
void onErrorEncountered(@NonNull IdCapture capture,
        @NonNull Throwable error,
        @NonNull IdCaptureSession session,
        FrameData frameData)

Added in version 6.5.0

Called whenever an error occurs during the document scanning process.