iOS NFC Native Interface

DocumentProcessor

Class NameDescription
DocumentProcessorThe DocumentProcessor class is a processor used to OCR MRZ data from document images and perform NFC reading of passports.

Instance Methods

Method NameDescription
func cancel(withMessage: String?)Cancels any ongoing MRZ OCR or NFC scanning operations.
func isNfcSupported() -> BoolDetermines whether NFC scanning is supported with the current device and operating system configuration.
func performMrzOcr(image: String, onCompletion: (_ isValid: Bool, _ mrz: String?) -> Void)Performs MRZ OCR on the provided image.
func performNfcScan(documentNumber: String, dateOfBirth: String, dateOfExpiry: String, challenge: [UInt8]?, onCompletion: (Error?, DaonDocumentProcessorResult?) -> Void)Performs NFC scanning using the provided bac access control parameters.
func performNfcScan(mrzString: String, challenge: [UInt8]?, onCompletion: (Error?, DaonDocumentProcessorResult?) -> Void)Performs NFC scanning using the provided mrz string.

Relationships

Inherits From

  • ObjectiveC.NSObject

Conforms To

  • DaonTrustSDK.DaonDocumentProcessorModule
  • ObjectiveC.NSObjectProtocol
  • Swift.CVarArg
  • Swift.Copyable
  • Swift.CustomDebugStringConvertible
  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.Hashable

DocumentProcessor.Builder

Class NameDescription
DocumentProcessor.BuilderThe Builder class allows you to construct an instance of DocumentProcessor with specific settings.

Instance Methods

Method NameDescription
func build() throws -> DocumentProcessorBuilds the final DocumentProcessor instance which you can use to scan your document.
func setErrorDialogMessage(String) -> BuilderIf a custom or default error message is desired, it can be set using this method. Otherwise, if left unset, the SDK will return an error message obtained from the error.localizedDescription property.
func setLicense(String) -> BuilderUsed to set the license string that is mandatory in order for Trust SDK features to work.

Relationships

Inherits From

  • ObjectiveC.NSObject

Conforms To

  • ObjectiveC.NSObjectProtocol
  • Swift.CVarArg
  • Swift.CustomDebugStringConvertible
  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.Hashable
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard