-
- All Implemented Interfaces:
-
io.scanbot.sdk.camera.FrameHandler
public final class HealthInsuranceCardScannerFrameHandler implements FrameHandlerPerforms Health Insurance Card data detection on camera preview frames. Outputs results via HealthInsuranceCardScannerFrameHandler.ResultHandler (.addResultHandler).
Preview frame considered intercepted if at least one HealthInsuranceCardScannerFrameHandler.ResultHandler returns
truefrom HealthInsuranceCardScannerFrameHandler.ResultHandler.handleResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceHealthInsuranceCardScannerFrameHandler.ResultHandlerContinuously notified about HIC data detection results.
public abstract classHealthInsuranceCardScannerFrameHandler.HealthInsuranceCardScannerResultHandlerSuccessor-class needed for cross-platform implementation
public classHealthInsuranceCardScannerFrameHandler.Companion
-
Constructor Summary
Constructors Constructor Description HealthInsuranceCardScannerFrameHandler(HealthInsuranceCardScanner healthInsuranceCardScanner)
-
Method Summary
Modifier and Type Method Description final BooleangetIsEnabled()final UnitsetIsEnabled(Boolean isEnabled)BooleanhandleFrame(FrameHandler.Frame previewFrame)final UnitaddResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)Registers result handler which will be notified about HIC data detection results. final UnitremoveResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)Unregisters handler. -
-
Constructor Detail
-
HealthInsuranceCardScannerFrameHandler
HealthInsuranceCardScannerFrameHandler(HealthInsuranceCardScanner healthInsuranceCardScanner)
-
-
Method Detail
-
getIsEnabled
final Boolean getIsEnabled()
-
setIsEnabled
final Unit setIsEnabled(Boolean isEnabled)
- Parameters:
isEnabled-trueto enable HIC data detection.
-
handleFrame
@Synchronized() Boolean handleFrame(FrameHandler.Frame previewFrame)
-
addResultHandler
final Unit addResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)
Registers result handler which will be notified about HIC data detection results.
Results are coming on the worker thread. Don't forget to move execution to main thread before updating UI.
- Parameters:
handler- handler to register.
-
removeResultHandler
final Unit removeResultHandler(HealthInsuranceCardScannerFrameHandler.ResultHandler handler)
Unregisters handler.
- Parameters:
handler- handler to unregister.
-
-
-
-