mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-11-26 08:49:19 +08:00
1074ab990a
Includes a scanner window and pulsing scan line
15 lines
523 B
Objective-C
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
|