Created
July 27, 2017 12:15
-
-
Save xslim/0623a58b4fa3455c5e739fdbb08c75d4 to your computer and use it in GitHub Desktop.
Adyen Barcode Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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