ALScanViewDelegate Protocol Reference

Conforms to NSObject
Declared in ALScanView.h

Overview

Object that is notified when an ALScanView reports events of interest

– scanViewMotionExceededThreshold:

This method is called when the scan view has managed to detect large and sustained movement of the device during scanning, degrading scanning performance. This can be utilized to inform the user to limit shaking as much as possible

- (void)scanViewMotionExceededThreshold:(ALScanView *)scanView

Parameters

scanView

the scan view calling this method

Declared In

ALScanView.h

– scanView:didReceiveNativeBarcodeResult:

This method is called to report any barcodes found on the frame by the iOS native barcode scanner. Note, that the quality of the results may not match those of the Anyline Barcode plugin and the performance is not expected to be as good.

- (void)scanView:(ALScanView *)scanView didReceiveNativeBarcodeResult:(ALScanResult *)scanResult

Parameters

scanView

the scan view calling this method

scanResult

the barcode scan results

Declared In

ALScanView.h

– scanView:updatedCutoutWithPluginID:frame:

This method is called to report the latest CGRect frame of the cutout in display. An interesting way this could be utilized is to position any UI overlays / prompts over the scan view cutout.

- (void)scanView:(ALScanView *)scanView updatedCutoutWithPluginID:(NSString *)pluginID frame:(CGRect)frame

Parameters

scanView

the scan view calling this method

pluginID

the ID of the plugin, useful in a composite scanning setup

frame

the size and position of the cutout. If the cutout was hidden, the reported frame is null

Declared In

ALScanView.h

– scanView:encounteredError:

This method is called when a the scan view encountered an error during scanning.

- (void)scanView:(ALScanView *)scanView encounteredError:(NSError *)error

Parameters

scanView

the scan view calling this method

error

an NSError object holding information about the error encountered

Declared In

ALScanView.h