SBSDKUIBarcodesBatchScannerMapping
@protocol SBSDKUIBarcodesBatchScannerMapping
Protocol for ‘SBSDKUIBarcodesBatchScannerViewController’ barcode results mapping.
-
Method in which you should load and return information about barcode. The info is returned in block, so async loading is possible.
Declaration
Objective-C
- (void)loadMappedDataForBarcode:(nonnull SBSDKBarcodeScannerResult *)barcode completion: (void (^_Nullable)( SBSDKUIBarcodeMappedData *_Nullable))completion;
Swift
func loadMappedData(forBarcode barcode: SBSDKBarcodeScannerResult) async -> SBSDKUIBarcodeMappedData?
Parameters
barcode
Barcode, for which the info should be returned.
completion
Block, where you should return mapped info about barcode.