ALScanViewFactory Class Reference

Inherits from NSObject
Declared in ALScanViewFactory.h

+ withConfigFilePath:delegate:error:

Create a scan view from a JSON config whose filesystem path is defined. The delegate passed in should either be an ALScanPluginDelegate or an ALPluginViewCompositeDelegate, depending on what the config file defined, otherwise an error will be returned.

+ (ALScanView *_Nullable)withConfigFilePath:(NSString *)configFilePath delegate:(id)delegate error:(NSError *_Nullable *_Nullable)error

Parameters

configFilePath

the filesystem path to the JSON config

delegate

an ALScanPluginDelegate, or an ALPluginViewCompositeDelegate, depending on the config

error

the NSError object that will contain error information if creation of the Scan View is unsuccessful

Return Value

a ScanView instance, if successfully created

Declared In

ALScanViewFactory.h

+ withJSONDictionary:delegate:error:

Create a scan view from a JSON config whose filesystem path is defined. The delegate passed in should either be an ALScanPluginDelegate or an ALPluginViewCompositeDelegate, depending on what the config file defined, otherwise an error will be returned.

+ (ALScanView *_Nullable)withJSONDictionary:(NSDictionary *)JSONDictionary delegate:(id)delegate error:(NSError *_Nullable *_Nullable)error

Parameters

JSONDictionary

an NSDictionary that defines the configuration

delegate

an ALScanPluginDelegate, or an ALPluginViewCompositeDelegate, depending on the config

error

the NSError object that will contain error information if creation of the Scan View is unsuccessful

Return Value

a ScanView instance, if successfully created

Declared In

ALScanViewFactory.h