@thegrizzlylabs/react-native-genius-scan 5.1.2 → 5.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/android/build.gradle +1 -1
  2. package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
  3. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  4. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/{GSKProgressHUD.h → GSKMBProgressHUD.h} +68 -69
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +49 -1
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -1
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +1306 -291
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +27 -3
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +27 -3
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/{GSKProgressHUD.h → GSKMBProgressHUD.h} +68 -69
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +98 -2
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -1
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1306 -291
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +27 -3
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +27 -3
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1306 -291
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +27 -3
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +27 -3
  25. package/package.json +1 -1
@@ -41,5 +41,5 @@ rootProject.allprojects {
41
41
 
42
42
  dependencies {
43
43
  implementation 'com.facebook.react:react-native:+'
44
- implementation 'com.geniusscansdk:gssdk:5.1.2'
44
+ implementation 'com.geniusscansdk:gssdk:5.1.4'
45
45
  }
@@ -10,18 +10,15 @@
10
10
  <key>DebugSymbolsPath</key>
11
11
  <string>dSYMs</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64_x86_64-simulator</string>
13
+ <string>ios-arm64</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>GSSDK.framework</string>
16
16
  <key>SupportedArchitectures</key>
17
17
  <array>
18
18
  <string>arm64</string>
19
- <string>x86_64</string>
20
19
  </array>
21
20
  <key>SupportedPlatform</key>
22
21
  <string>ios</string>
23
- <key>SupportedPlatformVariant</key>
24
- <string>simulator</string>
25
22
  </dict>
26
23
  <dict>
27
24
  <key>BinaryPath</key>
@@ -29,15 +26,18 @@
29
26
  <key>DebugSymbolsPath</key>
30
27
  <string>dSYMs</string>
31
28
  <key>LibraryIdentifier</key>
32
- <string>ios-arm64</string>
29
+ <string>ios-arm64_x86_64-simulator</string>
33
30
  <key>LibraryPath</key>
34
31
  <string>GSSDK.framework</string>
35
32
  <key>SupportedArchitectures</key>
36
33
  <array>
37
34
  <string>arm64</string>
35
+ <string>x86_64</string>
38
36
  </array>
39
37
  <key>SupportedPlatform</key>
40
38
  <string>ios</string>
39
+ <key>SupportedPlatformVariant</key>
40
+ <string>simulator</string>
41
41
  </dict>
42
42
  </array>
43
43
  <key>CFBundlePackageType</key>
@@ -1,5 +1,5 @@
1
1
  //
2
- // GSKProgressHUD.h
2
+ // GSKMBProgressHUD.h
3
3
  // Version 1.2.0
4
4
  // Created by Matej Bukovinski on 2.4.09.
5
5
  //
@@ -26,71 +26,69 @@
26
26
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
27
  // THE SOFTWARE.
28
28
 
29
+ #import <CoreGraphics/CoreGraphics.h>
29
30
  #import <Foundation/Foundation.h>
30
31
  #import <UIKit/UIKit.h>
31
- #import <CoreGraphics/CoreGraphics.h>
32
-
33
- @class MBBackgroundView;
34
- @protocol GSKProgressHUDDelegate;
35
32
 
33
+ @class GSKMBBackgroundView;
34
+ @protocol GSKMBProgressHUDDelegate;
36
35
 
37
- extern CGFloat const MBProgressMaxOffset;
36
+ extern CGFloat const GSKMBProgressMaxOffset;
38
37
 
39
- typedef NS_ENUM(NSInteger, GSKProgressHUDMode) {
38
+ typedef NS_ENUM(NSInteger, GSKMBProgressHUDMode) {
40
39
  /// UIActivityIndicatorView.
41
- GSKProgressHUDModeIndeterminate,
40
+ GSKMBProgressHUDModeIndeterminate,
42
41
  /// A round, pie-chart like, progress view.
43
- GSKProgressHUDModeDeterminate,
42
+ GSKMBProgressHUDModeDeterminate,
44
43
  /// Horizontal progress bar.
45
- GSKProgressHUDModeDeterminateHorizontalBar,
44
+ GSKMBProgressHUDModeDeterminateHorizontalBar,
46
45
  /// Ring-shaped progress view.
47
- GSKProgressHUDModeAnnularDeterminate,
46
+ GSKMBProgressHUDModeAnnularDeterminate,
48
47
  /// Shows a custom view.
49
- GSKProgressHUDModeCustomView,
48
+ GSKMBProgressHUDModeCustomView,
50
49
  /// Shows only labels.
51
- GSKProgressHUDModeText
50
+ GSKMBProgressHUDModeText
52
51
  };
53
52
 
54
- typedef NS_ENUM(NSInteger, GSKProgressHUDAnimation) {
53
+ typedef NS_ENUM(NSInteger, GSKMBProgressHUDAnimation) {
55
54
  /// Opacity animation
56
- GSKProgressHUDAnimationFade,
55
+ GSKMBProgressHUDAnimationFade,
57
56
  /// Opacity + scale animation (zoom in when appearing zoom out when disappearing)
58
- GSKProgressHUDAnimationZoom,
57
+ GSKMBProgressHUDAnimationZoom,
59
58
  /// Opacity + scale animation (zoom out style)
60
- GSKProgressHUDAnimationZoomOut,
59
+ GSKMBProgressHUDAnimationZoomOut,
61
60
  /// Opacity + scale animation (zoom in style)
62
- GSKProgressHUDAnimationZoomIn
61
+ GSKMBProgressHUDAnimationZoomIn
63
62
  };
64
63
 
65
- typedef NS_ENUM(NSInteger, GSKProgressHUDBackgroundStyle) {
64
+ typedef NS_ENUM(NSInteger, GSKMBProgressHUDBackgroundStyle) {
66
65
  /// Solid color background
67
- GSKProgressHUDBackgroundStyleSolidColor,
66
+ GSKMBProgressHUDBackgroundStyleSolidColor,
68
67
  /// UIVisualEffectView or UIToolbar.layer background view
69
- GSKProgressHUDBackgroundStyleBlur
68
+ GSKMBProgressHUDBackgroundStyleBlur
70
69
  };
71
70
 
72
- typedef void (^GSKProgressHUDCompletionBlock)(void);
73
-
71
+ typedef void (^GSKMBProgressHUDCompletionBlock)(void);
74
72
 
75
73
  NS_ASSUME_NONNULL_BEGIN
76
74
 
77
-
78
75
  /**
79
76
  * Displays a simple HUD window containing a progress indicator and two optional labels for short messages.
80
77
  *
81
78
  * This is a simple drop-in class for displaying a progress HUD view similar to Apple's private UIProgressHUD class.
82
- * The GSKProgressHUD window spans over the entire space given to it by the initWithFrame: constructor and catches all
79
+ * The GSKMBProgressHUD window spans over the entire space given to it by the initWithFrame: constructor and catches all
83
80
  * user input on this region, thereby preventing the user operations on components below the view.
84
81
  *
85
82
  * @note To still allow touches to pass through the HUD, you can set hud.userInteractionEnabled = NO.
86
- * @attention GSKProgressHUD is a UI class and should therefore only be accessed on the main thread.
83
+ * @attention GSKMBProgressHUD is a UI class and should therefore only be accessed on the main thread.
87
84
  */
88
- @interface GSKProgressHUD : UIView
85
+ @interface GSKMBProgressHUD : UIView
89
86
 
90
87
  /**
91
88
  * Creates a new HUD, adds it to provided view and shows it. The counterpart to this method is hideHUDForView:animated:.
92
89
  *
93
- * @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when hidden.
90
+ * @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when
91
+ * hidden.
94
92
  *
95
93
  * @param view The view that the HUD will be added to
96
94
  * @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
@@ -105,13 +103,15 @@ NS_ASSUME_NONNULL_BEGIN
105
103
  /// @name Showing and hiding
106
104
 
107
105
  /**
108
- * Finds the top-most HUD subview that hasn't finished and hides it. The counterpart to this method is showHUDAddedTo:animated:.
106
+ * Finds the top-most HUD subview that hasn't finished and hides it. The counterpart to this method is
107
+ * showHUDAddedTo:animated:.
109
108
  *
110
- * @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when hidden.
109
+ * @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when
110
+ * hidden.
111
111
  *
112
112
  * @param view The view that is going to be searched for a HUD subview.
113
- * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
114
- * animations while disappearing.
113
+ * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not
114
+ * use animations while disappearing.
115
115
  * @return YES if a HUD was found and removed, NO otherwise.
116
116
  *
117
117
  * @see showHUDAddedTo:animated:
@@ -125,7 +125,7 @@ NS_ASSUME_NONNULL_BEGIN
125
125
  * @param view The view that is going to be searched.
126
126
  * @return A reference to the last HUD subview discovered.
127
127
  */
128
- + (nullable GSKProgressHUD *)HUDForView:(UIView *)view NS_SWIFT_NAME(forView(_:));
128
+ + (nullable GSKMBProgressHUD *)HUDForView:(UIView *)view NS_SWIFT_NAME(forView(_:));
129
129
 
130
130
  /**
131
131
  * A convenience constructor that initializes the HUD with the view's bounds. Calls the designated constructor with
@@ -154,19 +154,19 @@ NS_ASSUME_NONNULL_BEGIN
154
154
  * Hides the HUD. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
155
155
  * hide the HUD when your task completes.
156
156
  *
157
- * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
158
- * animations while disappearing.
157
+ * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not
158
+ * use animations while disappearing.
159
159
  *
160
160
  * @see animationType
161
161
  */
162
162
  - (void)hideAnimated:(BOOL)animated;
163
163
 
164
164
  /**
165
- * Hides the HUD after a delay. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
166
- * hide the HUD when your task completes.
165
+ * Hides the HUD after a delay. This still calls the hudWasHidden: delegate. This is the counterpart of the show:
166
+ * method. Use it to hide the HUD when your task completes.
167
167
  *
168
- * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
169
- * animations while disappearing.
168
+ * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not
169
+ * use animations while disappearing.
170
170
  * @param delay Delay in seconds until the HUD is hidden.
171
171
  *
172
172
  * @see animationType
@@ -176,12 +176,12 @@ NS_ASSUME_NONNULL_BEGIN
176
176
  /**
177
177
  * The HUD delegate object. Receives HUD state notifications.
178
178
  */
179
- @property (weak, nonatomic) id<GSKProgressHUDDelegate> delegate;
179
+ @property (weak, nonatomic) id<GSKMBProgressHUDDelegate> delegate;
180
180
 
181
181
  /**
182
182
  * Called after the HUD is hidden.
183
183
  */
184
- @property (copy, nullable) GSKProgressHUDCompletionBlock completionBlock;
184
+ @property (copy, nullable) GSKMBProgressHUDCompletionBlock completionBlock;
185
185
 
186
186
  /**
187
187
  * Grace period is the time (in seconds) that the invoked method may be run without
@@ -210,9 +210,9 @@ NS_ASSUME_NONNULL_BEGIN
210
210
  /// @name Appearance
211
211
 
212
212
  /**
213
- * GSKProgressHUD operation mode. The default is GSKProgressHUDModeIndeterminate.
213
+ * GSKMBProgressHUD operation mode. The default is GSKMBProgressHUDModeIndeterminate.
214
214
  */
215
- @property (assign, nonatomic) GSKProgressHUDMode mode;
215
+ @property (assign, nonatomic) GSKMBProgressHUDMode mode;
216
216
 
217
217
  /**
218
218
  * A color that gets forwarded to all labels and supported indicators. Also sets the tintColor
@@ -224,12 +224,12 @@ NS_ASSUME_NONNULL_BEGIN
224
224
  /**
225
225
  * The animation type that should be used when the HUD is shown and hidden.
226
226
  */
227
- @property (assign, nonatomic) GSKProgressHUDAnimation animationType UI_APPEARANCE_SELECTOR;
227
+ @property (assign, nonatomic) GSKMBProgressHUDAnimation animationType UI_APPEARANCE_SELECTOR;
228
228
 
229
229
  /**
230
- * The bezel offset relative to the center of the view. You can use MBProgressMaxOffset
231
- * and -MBProgressMaxOffset to move the HUD all the way to the screen edge in each direction.
232
- * E.g., CGPointMake(0.f, MBProgressMaxOffset) would position the HUD centered on the bottom edge.
230
+ * The bezel offset relative to the center of the view. You can use GSKMBProgressMaxOffset
231
+ * and -GSKMBProgressMaxOffset to move the HUD all the way to the screen edge in each direction.
232
+ * E.g., CGPointMake(0.f, GSKMBProgressMaxOffset) would position the HUD centered on the bottom edge.
233
233
  */
234
234
  @property (assign, nonatomic) CGPoint offset UI_APPEARANCE_SELECTOR;
235
235
 
@@ -248,15 +248,17 @@ NS_ASSUME_NONNULL_BEGIN
248
248
  /**
249
249
  * Force the HUD dimensions to be equal if possible.
250
250
  */
251
- @property (assign, nonatomic, getter = isSquare) BOOL square UI_APPEARANCE_SELECTOR;
251
+ @property (assign, nonatomic, getter=isSquare) BOOL square UI_APPEARANCE_SELECTOR;
252
252
 
253
253
  /**
254
254
  * When enabled, the bezel center gets slightly affected by the device accelerometer data.
255
255
  * Defaults to NO.
256
256
  *
257
- * @note This can cause main thread checker assertions on certain devices. https://github.com/jdg/MBProgressHUD/issues/552
257
+ * @note This can cause main thread checker assertions on certain devices.
258
+ * https://github.com/jdg/GSKMBProgressHUD/issues/552
258
259
  */
259
- @property (assign, nonatomic, getter=areDefaultMotionEffectsEnabled) BOOL defaultMotionEffectsEnabled UI_APPEARANCE_SELECTOR;
260
+ @property (assign, nonatomic, getter=areDefaultMotionEffectsEnabled)
261
+ BOOL defaultMotionEffectsEnabled UI_APPEARANCE_SELECTOR;
260
262
 
261
263
  /// @name Progress
262
264
 
@@ -277,27 +279,28 @@ NS_ASSUME_NONNULL_BEGIN
277
279
  /**
278
280
  * The view containing the labels and indicator (or customView).
279
281
  */
280
- @property (strong, nonatomic, readonly) MBBackgroundView *bezelView;
282
+ @property (strong, nonatomic, readonly) GSKMBBackgroundView *bezelView;
281
283
 
282
284
  /**
283
285
  * View covering the entire HUD area, placed behind bezelView.
284
286
  */
285
- @property (strong, nonatomic, readonly) MBBackgroundView *backgroundView;
287
+ @property (strong, nonatomic, readonly) GSKMBBackgroundView *backgroundView;
286
288
 
287
289
  /**
288
- * The UIView (e.g., a UIImageView) to be shown when the HUD is in GSKProgressHUDModeCustomView.
290
+ * The UIView (e.g., a UIImageView) to be shown when the HUD is in GSKMBProgressHUDModeCustomView.
289
291
  * The view should implement intrinsicContentSize for proper sizing. For best results use approximately 37 by 37 pixels.
290
292
  */
291
293
  @property (strong, nonatomic, nullable) UIView *customView;
292
294
 
293
295
  /**
294
- * A label that holds an optional short message to be displayed below the activity indicator. The HUD is automatically resized to fit
295
- * the entire text.
296
+ * A label that holds an optional short message to be displayed below the activity indicator. The HUD is automatically
297
+ * resized to fit the entire text.
296
298
  */
297
299
  @property (strong, nonatomic, readonly) UILabel *label;
298
300
 
299
301
  /**
300
- * A label that holds an optional details message displayed below the labelText message. The details text can span multiple lines.
302
+ * A label that holds an optional details message displayed below the labelText message. The details text can span
303
+ * multiple lines.
301
304
  */
302
305
  @property (strong, nonatomic, readonly) UILabel *detailsLabel;
303
306
 
@@ -308,23 +311,21 @@ NS_ASSUME_NONNULL_BEGIN
308
311
 
309
312
  @end
310
313
 
311
-
312
- @protocol GSKProgressHUDDelegate <NSObject>
314
+ @protocol GSKMBProgressHUDDelegate <NSObject>
313
315
 
314
316
  @optional
315
317
 
316
318
  /**
317
319
  * Called after the HUD was fully hidden from the screen.
318
320
  */
319
- - (void)hudWasHidden:(GSKProgressHUD *)hud;
321
+ - (void)hudWasHidden:(GSKMBProgressHUD *)hud;
320
322
 
321
323
  @end
322
324
 
323
-
324
325
  /**
325
326
  * A progress view for showing definite progress by filling up a circle (pie chart).
326
327
  */
327
- @interface MBRoundProgressView : UIView
328
+ @interface GSKMBRoundProgressView : UIView
328
329
 
329
330
  /**
330
331
  * Progress (0.0 to 1.0)
@@ -347,15 +348,14 @@ NS_ASSUME_NONNULL_BEGIN
347
348
  /*
348
349
  * Display mode - NO = round or YES = annular. Defaults to round.
349
350
  */
350
- @property (nonatomic, assign, getter = isAnnular) BOOL annular;
351
+ @property (nonatomic, assign, getter=isAnnular) BOOL annular;
351
352
 
352
353
  @end
353
354
 
354
-
355
355
  /**
356
356
  * A flat bar progress view.
357
357
  */
358
- @interface MBBarProgressView : UIView
358
+ @interface GSKMBBarProgressView : UIView
359
359
 
360
360
  /**
361
361
  * Progress (0.0 to 1.0)
@@ -382,17 +382,16 @@ NS_ASSUME_NONNULL_BEGIN
382
382
 
383
383
  @end
384
384
 
385
-
386
- @interface MBBackgroundView : UIView
385
+ @interface GSKMBBackgroundView : UIView
387
386
 
388
387
  /**
389
388
  * The background style.
390
- * Defaults to GSKProgressHUDBackgroundStyleBlur.
389
+ * Defaults to GSKMBProgressHUDBackgroundStyleBlur.
391
390
  */
392
- @property (nonatomic) GSKProgressHUDBackgroundStyle style;
391
+ @property (nonatomic) GSKMBProgressHUDBackgroundStyle style;
393
392
 
394
393
  /**
395
- * The blur effect style, when using GSKProgressHUDBackgroundStyleBlur.
394
+ * The blur effect style, when using GSKMBProgressHUDBackgroundStyleBlur.
396
395
  * Defaults to UIBlurEffectStyleLight.
397
396
  */
398
397
  @property (nonatomic) UIBlurEffectStyle blurEffectStyle;
@@ -322,11 +322,37 @@ SWIFT_PROTOCOL("_TtP5GSSDK20CGImageRepresentable_")
322
322
 
323
323
 
324
324
 
325
+ @class AVCaptureDevice;
326
+ @class AVCaptureSession;
327
+ enum GSKCameraSessionFlashStatus : NSInteger;
328
+ enum GSKCameraSessionDocumentDetection : NSInteger;
325
329
  @class GSKCameraSessionConfiguration;
326
330
 
327
331
  SWIFT_CLASS("_TtC5GSSDK16GSKCameraSession")
328
332
  @interface GSKCameraSession : NSObject
333
+ /// Minimum duration in <code>.aboutToTrigger</code> state before triggering the photo.
334
+ /// This can be used to coordinate animations.
335
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval minDurationInAboutToTriggerForTrigger;)
336
+ + (NSTimeInterval)minDurationInAboutToTriggerForTrigger SWIFT_WARN_UNUSED_RESULT;
337
+ /// Public for legacy reasons, not to be used directly.
338
+ @property (nonatomic, strong) AVCaptureDevice * _Nullable captureDevice;
339
+ /// Public for legacy reasons, not to be used directly.
340
+ @property (nonatomic, strong) AVCaptureSession * _Nullable captureSession;
341
+ /// The flash mode. Default is .auto.
342
+ @property (nonatomic) enum GSKCameraSessionFlashStatus flashStatus;
343
+ /// Returns the current status of the document detection.
344
+ /// While you can configure the desired mode when setting up the session, the current value can change: for instance, the
345
+ /// active document detection is <code>.none</code> while taking the photo, or when the session is paused, even if the requested
346
+ /// detection is <code>.highlightAndTrigger</code>.
347
+ /// Observable.
348
+ @property (nonatomic) enum GSKCameraSessionDocumentDetection activeDocumentDetection;
349
+ /// True for the duration of taking the photo and processing it. Observable.
350
+ @property (nonatomic, readonly) BOOL isTakingPhoto;
351
+ /// Returns false if flash isn’t supported on this device configuration.
352
+ @property (nonatomic, readonly) BOOL supportsFlash;
329
353
  - (nonnull instancetype)initWithConfiguration:(GSKCameraSessionConfiguration * _Nonnull)configuration;
354
+ - (void)pauseSession;
355
+ - (void)resumeSession;
330
356
  - (nonnull instancetype)init SWIFT_UNAVAILABLE;
331
357
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
332
358
  @end
@@ -334,6 +360,17 @@ SWIFT_CLASS("_TtC5GSSDK16GSKCameraSession")
334
360
 
335
361
 
336
362
 
363
+ @interface GSKCameraSession (SWIFT_EXTENSION(GSSDK))
364
+ /// Manually take a photo
365
+ /// If autoTriggerEnabled is true, the photo is taken automatically when the frame is detected.
366
+ /// Otherwise, if you want to let the user manually trigger the photo, you can use this method.
367
+ /// This method can be called even when activeDetectionMode is higlightAndTrigger and will force taking the
368
+ /// photo.
369
+ /// IMPORTANT: Taking the photo will pause the session. You have to resume the session will <code>resumeSession</code> once
370
+ /// you are done processing the result.
371
+ - (void)takePhoto;
372
+ @end
373
+
337
374
 
338
375
 
339
376
  @class AVCapturePhotoOutput;
@@ -349,7 +386,6 @@ SWIFT_CLASS("_TtC5GSSDK16GSKCameraSession")
349
386
 
350
387
 
351
388
 
352
- enum GSKCameraSessionDocumentDetection : NSInteger;
353
389
 
354
390
  /// The configuration for a camera session.
355
391
  SWIFT_CLASS("_TtC5GSSDK29GSKCameraSessionConfiguration")
@@ -889,6 +925,15 @@ typedef SWIFT_ENUM(NSInteger, GSKReceiptCategory, open) {
889
925
  GSKReceiptCategoryOther = 5,
890
926
  };
891
927
 
928
+
929
+ /// A VAT rate and its associated amount detected on a receipt.
930
+ SWIFT_CLASS("_TtC5GSSDK13GSKReceiptVAT")
931
+ @interface GSKReceiptVAT : NSObject
932
+ - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
933
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
934
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
935
+ @end
936
+
892
937
  @class GSKScanFlowConfiguration;
893
938
 
894
939
  /// A high-level scanner module.
@@ -1294,6 +1339,9 @@ SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataReceipt")
1294
1339
  @property (nonatomic, readonly, copy) NSString * _Nullable currency;
1295
1340
  /// Any date that appears on the receipt, if successfully extracted, otherwise <code>nil</code>.
1296
1341
  @property (nonatomic, readonly, copy) NSDate * _Nullable date;
1342
+ /// The value-added tax (VAT) details.
1343
+ /// This property is an array because a receipt may display multiple VAT rates applying to different items
1344
+ @property (nonatomic, readonly, copy) NSArray<GSKReceiptVAT *> * _Nonnull vatValues;
1297
1345
  - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1298
1346
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1299
1347
  @end
@@ -28,6 +28,7 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
28
28
  #import <GSSDK/GSKLicenseKeyChecker.h>
29
29
  #import <GSSDK/GSKLog.h>
30
30
  #import <GSSDK/GSKLoggerSeverity.h>
31
+ #import <GSSDK/GSKMBProgressHUD.h>
31
32
  #import <GSSDK/GSKMagnifierView.h>
32
33
  #import <GSSDK/GSKOutputConfiguration.h>
33
34
  #import <GSSDK/GSKPerspectiveCorrectionConfiguration.h>
@@ -45,6 +46,5 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
45
46
  #import <GSSDK/GSKScanProcessor.h>
46
47
  #import <GSSDK/GSKShutterView.h>
47
48
  #import <GSSDK/GSKView.h>
48
- #import <GSSDK/GSKProgressHUD.h>
49
49
  #import <GSSDK/UIImage+GSKUtils.h>
50
50
  #import <GSSDK/GSKDefaultLogLevel.h>