ALCoreControllerDelegate Protocol Reference

Conforms to NSObject
Declared in ALCoreController.h

Overview

The AnylineController Delegate methods must be implemented to get results of the Anyline processing. All delegate callbacks are garanteed to be executed in the Main Thread.

– anylineCoreController:didFinishWithOutput: required method

Tells the delegate that the processing has successfully finished and gives the delegate the final output object.

- (void)anylineCoreController:(ALCoreController *_Nonnull)coreController didFinishWithOutput:(id _Nonnull)object

Parameters

object

The result object of the processing. The result is specified with the RETURN statement in the .alc file.

Discussion

This delegate method must be inplemented to receive any results from the AnylineSDK

Declared In

ALCoreController.h

– anylineCoreController:didAbortRun:

Tells the delegate that the processing has not completed successfully. Possible reason would be for example that the display or paper frame could not be found.

- (void)anylineCoreController:(ALCoreController *_Nonnull)coreController didAbortRun:(NSError *_Nonnull)reason

Parameters

error

A NSError object with ALErrorDomain and an appropriate status.

Declared In

ALCoreController.h

– anylineCoreController:reportsVariable:value:

Tells the delegate a specified intermediate result. Which intermediate results are reported can be specified in the .alc command file with the REPORT function.

- (void)anylineCoreController:(ALCoreController *_Nonnull)coreController reportsVariable:(NSString *_Nonnull)variableName value:(id _Nonnull)value

Parameters

variableName

The variable name in the .alc file which should be reported.

value

The value of the reported variable.

Discussion

This method is optional. It provides intermediate results, therefore Anyline did not completed the task yet.

Declared In

ALCoreController.h

– anylineCoreController:parserError:

Tells the delegate that there was a parsing error.

- (void)anylineCoreController:(ALCoreController *_Nonnull)coreController parserError:(NSError *_Nonnull)error

Parameters

error

The parsing error which occured.

Discussion

If this method is not implemented the SDK raises an exception with the parsing error.

Declared In

ALCoreController.h