Protocols

The following protocols are available globally.

  • A protocol to receive updates from camera zoom

    See more

    Declaration

    Objective-C

    @protocol ZoomDelegate <NSObject>

    Swift

    protocol ZoomDelegate : NSObjectProtocol
  • A protocol to receive updates from camera torch

    See more

    Declaration

    Objective-C

    @protocol TorchDelegate <NSObject>

    Swift

    protocol TorchDelegate : NSObjectProtocol
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol CodeAuthenticationDetailsReceiverProtocol <NSObject>
    
    -(void) didReceiveAuthenticationDetails:(nullable AuthenticationDetails*) authenticationDetails
                                  forCodeID:(NSString*) codeID
                                      error:(nullable id) error; // TODO: define error object
    
    @end

    Swift

    protocol CodeAuthenticationDetailsReceiverProtocol : NSObjectProtocol
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol CodeAuthenticationDetailsProviderProtocol <NSObject>
    
    -(void) receiver:(id<CodeAuthenticationDetailsReceiverProtocol>) receiver requestAuthenticationDetailsForCodeId:(NSString*) codeID apiHost:(NSString*) apiHost codeSpace:(NSString*) codeSpace;
    -(void) invalidateReceiver:(id<CodeAuthenticationDetailsReceiverProtocol>) receiver;
    
    @end

    Swift

    protocol CodeAuthenticationDetailsProviderProtocol : NSObjectProtocol
  • A protocol to let the app know about the last authentication session

    See more

    Declaration

    Objective-C

    @protocol AuthenticationSessionEndedDelegateProtocol <NSObject>

    Swift

    protocol AuthenticationSessionEndedDelegateProtocol : NSObjectProtocol
  • A protocol to know the scanned bar code details

    See more

    Declaration

    Objective-C

    @protocol BarcodeReaderDelegate <NSObject>

    Swift

    protocol BarcodeReaderDelegate
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol CodeDetectionDelegate <NSObject>
    - (void)codeReader:(id<CodeReader>)codeReader didDetectCodes:(NSArray<CodeDetectionObject *> *)codes frameSize:(CGSize) frameSize;
    @end

    Swift

    protocol CodeDetectionDelegate : NSObjectProtocol
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol NoScanEngineActivityDelegate <NSObject>
    -(void) noActivity;
    @end

    Swift

    protocol NoScanEngineActivityDelegate : NSObjectProtocol
  • A protocol to report the states of the individual scans.

    See more

    Declaration

    Objective-C

    @protocol ScanEngineFeedbackReceiverProtocol <NSObject>

    Swift

    protocol ScanEngineFeedbackReceiverProtocol : NSObjectProtocol
  • A protocol to receive updates from ScanEngine messages

    See more

    Declaration

    Objective-C

    @protocol ScanEngineMessageReceiver

    Swift

    protocol ScanEngineMessageReceiver