TestsTested | ✗ |
LangLanguage | Objective C++Objective C++ |
License | MIT |
ReleasedLast Release | Sep 2015 |
Maintained by koda.
ASRManager is a delightful library to use AsReader for iOS. ASRManager provides singleton instance including AsReader SDK.
ASRManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ASRManager"
#import <ASRManager.h>
[[ASRManager sharedInstance] open];
[[ASRManager sharedInstance] close];
[[ASRManager sharedInstance] startReadBarcodeOnce];
[[ASRManager sharedInstance] stopReadBarcode];
- (void)ASRManagerPlugged:(ASRManager *)manager isPlugged:(BOOL)isPlugged{
if(isPlugged){
NSLog(@"First ViewController : AsReader Plugged");
}else{
NSLog(@"First ViewController : AsReader Unplugged");
}
}
- (void)ASRManagerOnBarcodeScanned:(ASRManager *)manager value:(NSString *)value
{
dispatch_async(dispatch_get_main_queue(), ^{
_inputTextField.text = value;
});
}
-(void)ASRManagerBattery:(ASRManager *)manager battery:(int)battery
{
NSLog(@"battery %d%%",battery);
}
To run the example project, clone the repo, and run pod install
from the Example directory first.
Asterisk.inc Technical Team, [email protected]
ASRManager is available under the MIT license. See the LICENSE file for more info.