Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for iOS

SBSBarcodePickerBase.h
Go to the documentation of this file.
1 //
2 // SBSBarcodePicker.h
3 // ScanditBarcodeScanner
4 //
5 // Created by Marco Biasini on 09/06/15.
6 // Copyright (c) 2015 Scandit AG. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
10 #import <AVFoundation/AVFoundation.h>
11 #import <CoreGraphics/CoreGraphics.h>
12 #import <CoreVideo/CoreVideo.h>
13 #import <CoreMedia/CoreMedia.h>
14 
15 #import "SBSOverlayController.h"
16 #import "SBSScanSettings.h"
17 
18 
22 @interface SBSBarcodePickerBase : UIViewController
23 
26 
35 - (BOOL)isScanning;
36 
38 
41 
51 - (BOOL)supportsCameraFacing:(SBSCameraFacingDirection)facing;
52 
61 - (BOOL)changeToCameraFacing:(SBSCameraFacingDirection)facing;
62 
70 - (BOOL)switchCameraFacing;
72 
75 
88 - (void)switchTorchOn:(BOOL)on;
90 
91 
94 
107 - (BOOL)setRelativeZoom:(float)zoom;
109 
110 
116 @property (readonly, nonatomic) SBSCameraFacingDirection cameraFacingDirection;
117 
129 @property (nonatomic, assign) AVCaptureVideoOrientation cameraPreviewOrientation;
130 
137 @property (nonatomic, assign) BOOL autoFocusOnTapEnabled;
138 
148 @property (nonatomic, assign) BOOL pinchToZoomEnabled;
149 
150 
151 @end
BOOL pinchToZoomEnabled
Whether pinch to zoom is enabled.
Definition: SBSBarcodePickerBase.h:148
SBSCameraFacingDirection
Definition: SBSCommon.h:38
BOOL autoFocusOnTapEnabled
Whether tapping on the screen should trigger an auto-focus.
Definition: SBSBarcodePickerBase.h:137
AVCaptureVideoOrientation cameraPreviewOrientation
The orientation of the camera preview.
Definition: SBSBarcodePickerBase.h:129
BOOL isScanning()
Returns YES if scanning is in progress.
BOOL switchCameraFacing()
Changes to the opposite camera facing if it is supported.
SBSCameraFacingDirection cameraFacingDirection
The facing direction of the used camera.
Definition: SBSBarcodePickerBase.h:116
Implements the base functionality for the pre-4.7 and 4.7+ picker.
Definition: SBSBarcodePickerBase.h:22