Barcode Xpress Mobile for iOS
|
00001 /************************************************************** 00002 * Copyright 2011 - Accusoft Corporation, Tampa Florida. * 00003 * This sample code is provided to Accusoft licensees "as is" * 00004 * with no restrictions on use or modification. No warranty * 00005 * for use of this sample code is provided by Accusoft. * 00006 **************************************************************/ 00007 00016 #import <UIKit/UIKit.h> 00017 #import <AVFoundation/AVFoundation.h> 00018 #import "BXDemoAppDelegate.h" 00019 00020 @class BXInterface; 00021 @class BXResult; 00022 00026 @interface BXDemoViewController : UIViewController { 00028 BXDemoAppDelegate *appDel; 00030 AVCaptureVideoPreviewLayer *previewLayer; 00032 UIImageView *cameraImage; 00034 UIView *cameraPreview; 00036 UIImageView *hashImage; 00038 UIImageView *laserImage; 00040 UIImageView *thumbnailImage; 00042 UITextView *resultText; 00044 UILabel *processLabel; 00046 UIButton *backButton; 00048 UIButton *bxIcon; 00050 UIScrollView *scrollView; 00052 BXInterface *barcodeXpress; 00053 } 00054 00056 @property (nonatomic, strong) IBOutlet BXDemoAppDelegate *appDel; 00058 @property (nonatomic, strong) AVCaptureVideoPreviewLayer *previewLayer; 00060 @property (nonatomic, strong) IBOutlet UIImageView *cameraImage; 00062 @property (nonatomic, strong) UIView *cameraPreview; 00064 @property (nonatomic, strong) IBOutlet UIImageView *hashImage; 00066 @property (nonatomic, strong) IBOutlet UIImageView *laserImage; 00068 @property (nonatomic, strong) IBOutlet UIImageView *thumbnailImage; 00070 @property (nonatomic, strong) IBOutlet UITextView *resultText; 00072 @property (nonatomic, strong) IBOutlet UILabel *processLabel; 00074 @property (nonatomic, strong) IBOutlet UIButton *backButton; 00076 @property (nonatomic, strong) IBOutlet UIButton *bxIcon; 00078 @property (nonatomic, strong) IBOutlet UIScrollView *scrollView; 00080 @property (nonatomic) BXInterface *barcodeXpress; 00081 00085 -(void)animateLaser; 00086 00093 -(void)createBorder; 00094 00099 -(void)createLaser; 00100 00111 -(UIImage *)drawBarcodeBorder :(UIImage *)image :(BXResult*)result; 00112 00120 -(IBAction)onClickBackButton:(id)sender; 00121 00128 -(IBAction)onClickAccusoft:(id)sender; 00129 00135 -(const char *)reportVersion; 00136 00142 -(void)setBarcodeTypesUsingSettings; 00143 00149 - (void) setCameraPreviewTransform:(UIInterfaceOrientation)toInterfaceOrientation; 00150 00155 -(UIInterfaceOrientation)getUIOrientationFromDevice; 00156 00161 -(UIImageOrientation)getImageOrientationFromUIOrientation :(UIInterfaceOrientation) orientation; 00162 00163 @end