Skip to content

Instantly share code, notes, and snippets.

@xslim
Created July 27, 2017 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xslim/0623a58b4fa3455c5e739fdbb08c75d4 to your computer and use it in GitHub Desktop.
Save xslim/0623a58b4fa3455c5e739fdbb08c75d4 to your computer and use it in GitHub Desktop.
Adyen Barcode Example
#import "ViewController.h"
// Do not forget to put in Podfile:
// use_frameworks!
// pod "AdyenBarcoder"
#import <AdyenBarcoder/AdyenBarcoder-Swift.h>
@interface ViewController () <BarcoderDelegate>
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Initialize
[Barcoder sharedInstance].delegate = self;
}
// Did scanned
- (void)didScanWithBarcode:(Barcode * _Nonnull)barcode {
NSLog(@"Scanned barcode: %@", barcode.text);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment