Skip to content

Commit

Permalink
Updated to RedLaser SDK 2.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbranson committed Mar 21, 2011
1 parent ea262c6 commit 6dc8dca
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 7 deletions.
36 changes: 30 additions & 6 deletions RedLaser/RedLaser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@

/*
* Updated 24/8/2010, Chris Branson, updated to RedLaser SDK 2.8.2
*
* Updated 16/2/2010, Chris Branson, updated to RedLaser SDK 2.9.2
*
*/

namespace RedLaser
{
//#define kBarcodeTypeSTICKY 0x8
//#define kBarcodeTypeEAN13 0x1
//#define kBarcodeTypeUPCE 0x2
//#define kBarcodeTypeEAN8 0x4

[BaseType (typeof (NSObject))]
[Model]
interface BarcodePickerControllerDelegate {
Expand All @@ -34,6 +31,9 @@ interface RealtimeOverlayDelegate{

[Export ("barcodePickerControllerDidAppear:")]
void PickerAppeared (BarcodePickerController controller);

[Export ("barcodePickerControllerWillAppear:")]
void PickerAppearing (BarcodePickerController controller);
}

[BaseType (typeof (UIViewController))]
Expand All @@ -50,6 +50,9 @@ interface BarcodePickerController {
[Export ("cancel")]
void Cancel ();

[Export ("turnFlash:")]
void TurnFlash (bool enabled);

[Export ("overlayDelegate", ArgumentSemantic.Retain)][NullAllowed]
NSObject WeakOverlayDelegate { get; set; }

Expand All @@ -62,6 +65,9 @@ interface BarcodePickerController {
[Wrap ("WeakDelegate")]
BarcodePickerControllerDelegate Delegate { get; set; }

[Export ("hasFlash", ArgumentSemantic.Assign)]
bool HasFlash { get; set; }

[Export ("scanUPCE", ArgumentSemantic.Assign)]
bool ScanUPCE { get; set; }

Expand All @@ -74,14 +80,32 @@ interface BarcodePickerController {
[Export ("scanSTICKY", ArgumentSemantic.Assign)]
bool ScanSTICKY { get; set; }

[Export ("scanQRCODE", ArgumentSemantic.Assign)]
bool ScanQRCODE { get; set; }

[Export ("scanCODE128", ArgumentSemantic.Assign)]
bool ScanCODE128 { get; set; }

[Export ("scanCODE39", ArgumentSemantic.Assign)]
bool ScanCODE39 { get; set; }

[Export ("scanDATAMATRIX", ArgumentSemantic.Assign)]
bool ScanDATAMATRIX { get; set; }

[Export ("scanITF", ArgumentSemantic.Assign)]
bool ScanITF { get; set; }

[Export ("activeRegion", ArgumentSemantic.Assign)]
System.Drawing.RectangleF ActiveRegion { get; set; }

[Export ("lastRect", ArgumentSemantic.Assign)]
System.Drawing.RectangleF LastRect { get; set; }

[Export ("orientation", ArgumentSemantic.Assign)]
MonoTouch.UIKit.UIImageOrientation Orientation { get; set; }

[Export ("cameraView", ArgumentSemantic.Assign)]
MonoTouch.UIKit.UIView CameraView { get; set; }

}
}
}
14 changes: 13 additions & 1 deletion RedLaser/enum.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
/*
* Updated 24/8/2010, Chris Branson, updated to RedLaser SDK 2.8.2
*
* Updated 16/2/2010, Chris Branson, updated to RedLaser SDK 2.9.2
*
*/

public enum RLBarcodeType { EAN13 = 1, UPCE = 2, EAN8 = 4, STICKY = 8 }
public enum RLBarcodeType {
EAN13 = 0x1,
UPCE = 0x2,
EAN8 = 0x4,
STICKY = 0x8,
QRCODE = 0x10,
Code128 = 0x20,
Code39 = 0x40,
DataMatrix = 0x80,
ITF = 0x100
}

0 comments on commit 6dc8dca

Please sign in to comment.