BarcodeReaderDelegate

Objective-C

@protocol BarcodeReaderDelegate <NSObject>

Swift

protocol BarcodeReaderDelegate

A protocol to know the scanned bar code details

  • Called when barcode reading is success

    Declaration

    Objective-C

    - (void)sessionEndedWithCode:(NSString *)content barcodeType:(BarcodeType)type;

    Swift

    func sessionEnded(withCode content: Any!, barcodeType type: Any!)

    Parameters

    content

    a string extracted from the bar code

    type

    type of the barcode. Can be anyone from BarcodeType