public class GenericDocumentScanningSession
Provides a wrapper for observing an document scanning result
public static double ZERO_CONFIDENCE_VALUE
public static double MODERATE_CONFIDENCE_VALUE
public static double HIGH_CONFIDENCE_VALUE
public static io.scanbot.sdk.ui.view.genericdocument.GenericDocumentScanningSession.Companion Companion
public GenericDocumentScanningSession(@NotNull
io.scanbot.sdk.genericdocument.GenericDocumentRecognizer genericDocumentRecognizer)
Provides a wrapper for observing an document scanning result
@NotNull public io.reactivex.Observable<io.scanbot.sdk.ui.view.genericdocument.DocumentRecognitionState> observeDocumentRecognitionResults()
Observes newly processed document
public void pushNewDocumentRecognitionResult(@NotNull
io.scanbot.sdk.genericdocument.GenericDocumentRecognitionResult result)
Notifies about the event of document scanning
@NotNull public io.reactivex.Observable<java.lang.Boolean> observeScanReadyState()
Observes the state of document scanning
@NotNull public io.reactivex.Observable<java.lang.Boolean> observeScanningPausedState()
Observes the paused state of the session
public void pushScanReadyState(boolean ready)
Notifies about the event of scanning state
public void pushScanningPausedState(boolean opened)
Notifies about the event of pausing the session
public void clear()
Clears the queue in the recognizer and current document state
@NotNull public java.util.Set<io.scanbot.genericdocument.entity.GenericDocument> getAllDocuments()
Provides access to the current state