AnylineMRZModuleView Class Reference

Inherits from AnylineAbstractModuleView : UIView
Declared in AnylineMRZModuleView.h

Overview

The AnylineMRZModuleView class declares the programmatic interface for an object that manages easy access to Anylines MRZ scanning mode. All its capabilities are bundled into this AnylineAbstractModuleView subclass. Management of the scanning process happens within the view object. It is configurable via interface builder.

Communication with the host application is managed with a delegate that conforms to AnylineMRZModuleDelegate. The information that gets read is passed to the delegate with the help of of an ALIdentification object.

  mrzScanViewPlugin

@property (nullable, nonatomic, strong) ALIDScanViewPlugin *mrzScanViewPlugin

  mrzScanPlugin

@property (nullable, nonatomic, strong) ALIDScanPlugin *mrzScanPlugin

  strictMode

If strictMode is enabled, results will only be returned when all checkDigits are valid. Default strictMode = false

@property (nonatomic) BOOL strictMode

Declared In

AnylineMRZModuleView.h

  cropAndTransformID

If cropAndTransformID is enabled, the detected identification document will be cropped and the image will be returned. Default strictMode = false

@property (nonatomic) BOOL cropAndTransformID

Declared In

AnylineMRZModuleView.h

– setupWithLicenseKey:delegate:error:

Sets the license key and delegate.

- (BOOL)setupWithLicenseKey:(NSString *_Nonnull)licenseKey delegate:(id<AnylineMRZModuleDelegate> _Nonnull)delegate error:(NSError *_Nullable *_Nullable)error

Parameters

licenseKey

The Anyline license key for this application bundle

delegate

The delegate that will receive the Anyline results (hast to conform to AnylineMRZModuleDelegate)

error

The error that occured

Return Value

Boolean indicating the success / failure of the call.

Declared In

AnylineMRZModuleView.h

– setupAsyncWithLicenseKey:delegate:finished:

Sets the license key and delegate. Async method with return block when done.

- (void)setupAsyncWithLicenseKey:(NSString *_Nonnull)licenseKey delegate:(id<AnylineMRZModuleDelegate> _Nonnull)delegate finished:(void ( ^ _Nonnull ) ( BOOL success , NSError *_Nullable error ))finished

Parameters

licenseKey

The Anyline license key for this application bundle

delegate

The delegate that will receive the Anyline results (hast to conform to AnylineMRZModuleDelegate)

finished

Inidicating if setup is finished with an error object when setup failed.

Declared In

AnylineMRZModuleView.h