DSHandlerDelegate
@objc
public protocol DSHandlerDelegate
A set of methods that provides feedback about the status of a document scan
Overview The document scan handler calls methods of its delegate in response to events that occur in the capture engine
-
This method is called when a scan of an image is complete.
Discussion When the scan mode is set to manual this delegate method will be called when the user captures an image.
When the scan mode is auto this method will be called anytime a result is captured, this could happen many times if you choice not to stop the scan once a result is given.
Declaration
Swift
@objc func handleScan(result: DSResult)
-
Invoked when the a capture session can not be completed due to an error
Declaration
Swift
@objc func captureError(_ error: DSError)
-
Invoked if stop is called on the handler by the implementing class
Declaration
Swift
@objc optional func scanWasCancelled()