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
contenta string extracted from the bar code
typetype of the barcode. Can be anyone from
BarcodeType
BarcodeReaderDelegate Protocol Reference