Skip to content

Commit

Permalink
Merge pull request #9 from OutSystems/RNMT-2820
Browse files Browse the repository at this point in the history
RNMT-2820 Barcode Plugin ::: Improve iOS reader quality
  • Loading branch information
usernuno authored Apr 24, 2019
2 parents a22ced9 + d142c9c commit d78cd98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/CsZBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ - (void)scan: (CDVInvokedUrlCommand*)command;

self.scanReader.readerDelegate = self;
self.scanReader.supportedOrientationsMask = ZBarOrientationMask(UIInterfaceOrientationPortrait);
self.scanReader.cameraCaptureMode = UIImagePickerControllerCameraCaptureModeVideo;
self.scanReader.videoQuality = UIImagePickerControllerQualityTypeHigh;

// Get user parameters
NSDictionary *params = (NSDictionary*) [command argumentAtIndex:0];
Expand Down

0 comments on commit d78cd98

Please sign in to comment.