SBSScanSession.h
Go to the documentation of this file.
1 //
2 // SBSScanSession.h
3 // BarcodeScanner
4 //
5 // Created by Marco Biasini on 20/05/15.
6 // Copyright (c) 2015 Scandit AG. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 @class SBSCode;
12 @class SBSTrackedCode;
13 
39 @interface SBSScanSession : NSObject
40 
44 @property (nonnull, readonly, nonatomic, copy) NSArray<SBSCode *> *newlyRecognizedCodes;
45 
50 @property (nonnull, readonly, nonatomic, copy) NSArray<SBSCode *> *newlyLocalizedCodes;
51 
65 @property (nonnull, readonly, nonatomic, copy) NSArray<SBSCode *> *allRecognizedCodes;
66 
81 @property (nullable, readonly, nonatomic, copy) NSDictionary<NSNumber *, SBSTrackedCode *> *trackedCodes;
82 
90 - (void)clear;
91 
105 - (void)pauseScanning;
106 
113 - (void)stopScanning;
114 
136 - (void)rejectCode:(nonnull SBSCode *)code;
137 
153 - (void)rejectTrackedCode:(nonnull SBSTrackedCode *)trackedCode;
154 
155 @end
NSArray< SBSCode * > * allRecognizedCodes
Returns the list of barcodes (data, symbology) that have been decoded (recognized) in this session...
Definition: SBSScanSession.h:65
Represents a recognized/localized barcode/2D code.
Definition: SBSCode.h:259
void clear()
Remove all codes from the scan session.
NSArray< SBSCode * > * newlyLocalizedCodes
A new copy of the list of barcodes that have been localized but not recognized in the last frame...
Definition: SBSScanSession.h:50
Holds all barcodes that were decoded in the current session.
Definition: SBSScanSession.h:39
void stopScanning()
Immediately stop barcode recognition and close camera.
void pauseScanning()
Immediately pauses barcode recognition, but keeps camera preview open.
NSArray< SBSCode * > * newlyRecognizedCodes
A new copy of the list of barcodes that have been successfully decoded in the last frame...
Definition: SBSScanSession.h:44
NSDictionary< NSNumber *, SBSTrackedCode * > * trackedCodes
Returns a dictionary representing a map between tracked object identifiers and tracked objects...
Definition: SBSScanSession.h:81
Represents a recognized/localized barcode/2D code that is being tracked over multiple frames...
Definition: SBSTrackedCode.h:18