2017-10-30 01:05:11 +08:00
|
|
|
#import <Flutter/Flutter.h>
|
2017-11-08 10:27:25 +08:00
|
|
|
#import "BarcodeScannerViewControllerDelegate.h"
|
2017-10-30 01:05:11 +08:00
|
|
|
|
2018-08-12 00:17:35 +08:00
|
|
|
#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]
|
2017-11-08 10:27:25 +08:00
|
|
|
|
|
|
|
@interface BarcodeScanPlugin : NSObject<FlutterPlugin, BarcodeScannerViewControllerDelegate>
|
|
|
|
|
|
|
|
@property(nonatomic, retain) FlutterResult result;
|
|
|
|
@property (nonatomic, assign) UIViewController *hostViewController;
|
2017-10-30 01:05:11 +08:00
|
|
|
@end
|