Deprecation warning

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

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

SBSOverlayController.h
Go to the documentation of this file.
1 //
2 // SBSOverlayController.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 <Foundation/Foundation.h>
10 
26 #import <UIKit/UIKit.h>
27 #import "AudioToolbox/AudioServices.h"
28 
29 #import "SBSCommon.h"
30 
32 @class SBSBarcodePicker;
33 
40 
50 - (void)overlayController:(nonnull SBSOverlayController *)overlayController
51  didCancelWithStatus:(nullable NSDictionary *)status;
52 
53 @end
54 
68 
70 
71 
89 @interface SBSOverlayController : UIViewController
90 
91 
97 @property (nullable, nonatomic, strong, readonly) UIToolbar *toolBar;
98 
104 @property (nullable, nonatomic, weak) id<SBSOverlayControllerDidCancelDelegate> cancelDelegate;
105 
114 @property (nonatomic, assign) SBSGuiStyle guiStyle;
115 
119 
131 - (void)setBeepEnabled:(BOOL)enabled;
132 
143 - (void)setVibrateEnabled:(BOOL)enabled;
144 
161 - (BOOL)setScanSoundResource:(nonnull NSString *)path ofType:(nonnull NSString *)extension;
163 
164 
168 
180 - (void)setTorchEnabled:(BOOL)enabled;
181 
194 - (BOOL)setTorchOnImage:(nonnull UIImage *)torchOnImage
195  pressed:(nonnull UIImage *)torchOnPressedImage;
196 
215 - (BOOL)setTorchOnImageResource:(nonnull NSString *)fileName
216  pressedResource:(nonnull NSString *)pressedFileName
217  ofType:(nonnull NSString *)extension;
218 
231 - (BOOL)setTorchOffImage:(nonnull UIImage *)torchOffImage
232  pressed:(nonnull UIImage *)torchOffPressedImage;
233 
250 - (BOOL)setTorchOffImageResource:(nonnull NSString *)fileName
251  pressedResource:(nonnull NSString *)pressedFileName
252  ofType:(nonnull NSString *)extension;
253 
266 - (void)setTorchButtonLeftMargin:(float)leftMargin
267  topMargin:(float)topMargin
268  width:(float)width
269  height:(float)height;
270 
283 - (void)setTorchOffButtonAccessibilityLabel:(nonnull NSString *)label
284  hint:(nonnull NSString *)hint;
285 
298 - (void)setTorchOnButtonAccessibilityLabel:(nonnull NSString *)label
299  hint:(nonnull NSString *)hint;
300 
302 
303 
307 
320 - (void)setCameraSwitchVisibility:(SBSCameraSwitchVisibility)visibility;
321 
334 - (BOOL)setCameraSwitchImage:(nonnull UIImage *)cameraSwitchImage
335  pressed:(nonnull UIImage *)cameraSwitchPressedImage;
336 
355 - (BOOL)setCameraSwitchImageResource:(nonnull NSString *)fileName
356  pressedResource:(nonnull NSString *)pressedFileName
357  ofType:(nonnull NSString *)extension;
358 
374 - (void)setCameraSwitchButtonRightMargin:(float)rightMargin
375  topMargin:(float)topMargin
376  width:(float)width
377  height:(float)height;
378 
392 - (void)setCameraSwitchButtonBackAccessibilityLabel:(nonnull NSString *)label
393  hint:(nonnull NSString *)hint;
394 
408 - (void)setCameraSwitchButtonFrontAccessibilityLabel:(nonnull NSString *)label
409  hint:(nonnull NSString *)hint;
410 
412 
413 
417 
433 - (void)drawViewfinder:(BOOL)draw SBS_DEPRECATED;
434 
455 - (void)setViewfinderHeight:(float)h
456  width:(float)w
457  landscapeHeight:(float)lH
458  landscapeWidth:(float)lW;
459 
478 - (void)setViewfinderPortraitWidth:(float)w
479  height:(float)h;
480 
481 
500 - (void)setViewfinderLandscapeWidth:(float)w
501  height:(float)h;
502 
516 - (void)setViewfinderColor:(float)r green:(float)g blue:(float)b;
517 
531 - (void)setViewfinderDecodedColor:(float)r green:(float)g blue:(float)b;
532 
533 
542 - (void)resetUI;
544 
545 
549 
558 - (void)showToolBar:(BOOL)show;
559 
569 - (void)setToolBarButtonCaption:(nonnull NSString *)caption;
571 
572 
576 
589 - (void)setMissingCameraPermissionInfoText:(nonnull NSString *)infoText;
591 
592 @end
593 
Definition: SBSOverlayController.h:63
Controls the camera and orchestrates the barcode scanning process.
Definition: SBSBarcodePicker.h:118
controls the scan screen user interface.
Definition: SBSOverlayController.h:89
UIToolbar * toolBar
The tool bar that can be shown at the bottom of the scan screen.
Definition: SBSOverlayController.h:97
Definition: SBSOverlayController.h:64
Definition: SBSOverlayController.h:61
#define SBS_ENUM_END(name)
Definition: SBSCommon.h:17
SBSGuiStyle
Enumeration of different GUI styles.
Definition: SBSCommon.h:112
id< SBSOverlayControllerDidCancelDelegate > cancelDelegate
The overlay controller delegate that handles the didCancelWithStatus callback.
Definition: SBSOverlayController.h:104
Definition: SBSOverlayController.h:66
SBSGuiStyle guiStyle
The GUI style drawn to display the indicator where the code should be scanned and the visualization o...
Definition: SBSOverlayController.h:114
void resetUI()
Resets the scan screen user interface to its initial state.
#define SBS_DEPRECATED
Definition: SBSCommon.h:9
Protocol cancel events.
Definition: SBSOverlayController.h:39
Definition: SBSOverlayController.h:65
Definition: SBSOverlayController.h:62
SBSCameraSwitchVisibility
Definition: SBSOverlayController.h:60
#define SBS_ENUM_BEGIN(name)
Definition: SBSCommon.h:16