flutter_barcode_reader/ios/Classes/BarcodeScanPlugin.h
dustin 1074ab990a make iOS scanner UI look the same as Android
Includes a scanner window and pulsing scan line
2018-08-11 09:17:35 -07:00

15 lines
523 B
Objective-C

#import <Flutter/Flutter.h>
#import "BarcodeScannerViewControllerDelegate.h"
#define UIColorFromRGB(rgbValue) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0x00FF00) >> 8))/255.0 \
blue:((float)((rgbValue & 0x0000FF) >> 0))/255.0 \
alpha:1.0]
@interface BarcodeScanPlugin : NSObject<FlutterPlugin, BarcodeScannerViewControllerDelegate>
@property(nonatomic, retain) FlutterResult result;
@property (nonatomic, assign) UIViewController *hostViewController;
@end