Mobile Document Scanner
Defined in framework ScanditIdCapture
- MobileDocumentScanner
open class MobileDocumentScanner : NSObject
Added in version 8.0.0
Configures scanning of mobile identity documents, including ISO 18013-5 compliant mobile driver’s licenses (mDL) and OCR-based mobile documents.
- init
init(enablingIso180135 iso180135:
Bool, ocr:Bool)Added in version 8.0.0
Creates a new MobileDocumentScanner instance.
- init
init(enablingIso180135 iso180135:
Bool, ocr:Bool, elementsToRetain: MobileDocumentDataElement)Added in version 8.0.0
Creates a new MobileDocumentScanner instance with specified elements to retain.
Each requested data field includes a boolean IntentToRetain in device request according to ISO 18013-5 standards. This parameter allows you to specify which fields your application intends to retain, ensuring compliance with legal requirements. By default, IntentToRetain is set to false for all fields unless they are included in elementsToRetain.
- iso180135
open var iso180135:
Bool{ get }Added in version 8.0.0
Indicates whether ISO 18013-5 mDL scanning is enabled. When enabled, the scanner can read mobile driver’s licenses that comply with the ISO 18013-5 standard via Bluetooth Low Energy (BLE) communication.
- ocr
open var ocr:
Bool{ get }Added in version 8.0.0
Indicates whether OCR is enabled to extract data from mobile documents using a proprietary format. Note that this feature requires the ScanditLabelCaptureText library.
- elementsToRetain
open var elementsToRetain: MobileDocumentDataElement { get }
Added in version 8.0.0
The set of data elements that the application intends to retain from scanned mobile documents. This information is used to set the IntentToRetain flag in ISO 18013-5 mdoc requests, which is required for legal compliance with data protection standards. An empty set indicates no elements will be retained, and IntentToRetain will be set to false for all fields.