ALBarcodeScanPlugin Class Reference

Inherits from ALAbstractScanPlugin : NSObject
Declared in ALBarcodeScanPlugin.h

Overview

The ALBarcodeScanPlugin class declares the programmatic interface for an object that manages easy access to Anylines barcode scanning mode.

Communication with the host application is managed with a delegate that conforms to ALBarcodeScanPluginDelegate & ALInfoDelegate.

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

– init

- (instancetype _Nullable)init

– initWithPluginID:licenseKey:delegate:error:

Constructor for the BarcodeScanPlugin

- (instancetype _Nullable)initWithPluginID:(NSString *_Nullable)pluginID licenseKey:(NSString *_Nonnull)licenseKey delegate:(id<ALBarcodeScanPluginDelegate> _Nonnull)delegate error:(NSError *_Nullable *_Nullable)error

Parameters

pluginID

An unique pluginID

licenseKey

The Anyline license key

delegate

The delegate which receives the results

error

The Error object if something fails

Return Value

Boolean indicating the success / failure of the call.

Declared In

ALBarcodeScanPlugin.h

  delegates

@property (nonatomic, strong, readonly) NSHashTable<ALBarcodeScanPluginDelegate> *delegates

  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

ALBarcodeScanPlugin.h

– barcodeFormatForString:

- (ALBarcodeFormat)barcodeFormatForString:(NSString *_Nullable)barcodeFormatString

– addDelegate:

- (void)addDelegate:(id<ALBarcodeScanPluginDelegate> _Nonnull)delegate

– removeDelegate:

- (void)removeDelegate:(id<ALBarcodeScanPluginDelegate> _Nonnull)delegate