AnylineBarcodeModuleView Class Reference

Inherits from AnylineAbstractModuleView : UIView
Declared in AnylineBarcodeModuleView.h

Overview

The AnylineBarcodeModuleView class declares the programmatic interface for an object that manages easy access to Anylines barcode 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 AnylineBarcodeModuleDelegate.

AnylineBarcodeModuleView is able to scan the most common 1D and 2D codes. The accepted codes are set with setBarcodeFormatOptions.

  barcodeScanPlugin

@property (nullable, nonatomic, strong) ALBarcodeScanPlugin *barcodeScanPlugin

  barcodeScanViewPlugin

@property (nullable, nonatomic, strong) ALBarcodeScanViewPlugin *barcodeScanViewPlugin

  barcodeFormatOptions

Sets the type of code to recognize. Valid values are: kCodeTypeAztec, kCodeTypeCodabar, kCodeTypeCode39, kCodeTypeCode93, kCodeTypeCode128, kCodeTypeDataMatrix, kCodeTypeEAN8, kCodeTypeEAN13, kCodeTypeITF, kCodeTypePDF417, kCodeTypeQR, kCodeTypeRSS14, kCodeTypeRSSExpanded, kCodeTypeUPCA, kCodeTypeUPCE, kCodeTypeUPCEANExtension. Default are all of the above.

@property (nonatomic, assign) ALBarcodeFormatOptions barcodeFormatOptions

Declared In

AnylineBarcodeModuleView.h

  useOnlyNativeBarcodeScanning

When set to YES we only use the iOS native Barcode scanning. That one uses less computing power, but is worse under low light conditions.

@property (nonatomic, assign) BOOL useOnlyNativeBarcodeScanning

Declared In

AnylineBarcodeModuleView.h

– setupWithLicenseKey:delegate:error:

Sets the license key and delegate.

- (BOOL)setupWithLicenseKey:(NSString *_Nonnull)licenseKey delegate:(id<AnylineBarcodeModuleDelegate> _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 AnylineBarcodeModuleDelegate)

error

The error that occured

Return Value

Boolean indicating the success / failure of the call.

Declared In

AnylineBarcodeModuleView.h

– setupAsyncWithLicenseKey:delegate:finished:

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

- (void)setupAsyncWithLicenseKey:(NSString *_Nonnull)licenseKey delegate:(id<AnylineBarcodeModuleDelegate> _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 AnylineBarcodeModuleDelegate)

finished

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

Declared In

AnylineBarcodeModuleView.h