@thegrizzlylabs/react-native-genius-scan 5.0.0-beta1 → 5.0.0-beta2

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 (36) hide show
  1. package/android/build.gradle +1 -1
  2. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  3. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterType.h +1 -1
  4. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowErrorDomain.h +7 -0
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowOCROutputFormats.h +22 -0
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowPostProcessingActions.h +22 -0
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +13 -0
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +43 -135
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +5 -1
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/MBProgressHUD.h +411 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +7820 -10200
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +45 -117
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +45 -117
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterType.h +1 -1
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowErrorDomain.h +7 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowOCROutputFormats.h +22 -0
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowPostProcessingActions.h +22 -0
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +13 -0
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +86 -270
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +5 -1
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/MBProgressHUD.h +411 -0
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +7820 -10200
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +45 -117
  28. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  29. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +45 -117
  30. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +7820 -10200
  31. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +45 -117
  32. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  33. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +45 -117
  34. package/package.json +1 -1
  35. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlow.h +0 -91
  36. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlow.h +0 -91
@@ -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.0.0-beta1'
44
+ implementation 'com.geniusscansdk:gssdk:5.0.0-beta2'
45
45
  }
@@ -13,7 +13,7 @@
13
13
  /**
14
14
  The different possible enhancements
15
15
  */
16
- typedef NS_ENUM(NSInteger, GSKFilterType) {
16
+ typedef NS_CLOSED_ENUM(NSInteger, GSKFilterType) {
17
17
  /// No post processing
18
18
  GSKFilterNone = 0,
19
19
  /**
@@ -0,0 +1,7 @@
1
+ #import <Foundation/Foundation.h>
2
+
3
+ NS_ASSUME_NONNULL_BEGIN
4
+
5
+ FOUNDATION_EXPORT NSErrorDomain const GSKScanFlowErrorDomain;
6
+
7
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,22 @@
1
+ #ifndef GSKScanFlowOCROutputFormats_h
2
+ #define GSKScanFlowOCROutputFormats_h
3
+
4
+ /**
5
+ The various formats into which the OCR result can be made available.
6
+
7
+ This is an option set so you can combine multiple formats.
8
+ */
9
+ typedef NS_OPTIONS(NSUInteger, GSKScanFlowOCROutputFormats) {
10
+ /// No output formats
11
+ GSKScanFlowOCROutputFormatsNone = 0,
12
+ /// Output OCR result as raw text
13
+ GSKScanFlowOCROutputFormatsRawText = 1 << 0,
14
+ /// Output OCR result in HOCR format
15
+ GSKScanFlowOCROutputFormatsHOCR = 1 << 1,
16
+ /// Add OCR result as a text layer in the generated PDF file (if any)
17
+ GSKScanFlowOCROutputFormatsTextLayerInPDF = 1 << 2,
18
+ /// All the output formats
19
+ GSKScanFlowOCROutputFormatsAll = NSUIntegerMax,
20
+ };
21
+
22
+ #endif
@@ -0,0 +1,22 @@
1
+ #ifndef GSKScanFlowPostProcessingActions_h
2
+ #define GSKScanFlowPostProcessingActions_h
3
+
4
+ /**
5
+ The various image processing actions available in the post-processing screen.
6
+
7
+ This is an option set so you can combine multiple actions.
8
+ */
9
+ typedef NS_OPTIONS(NSUInteger, GSKScanFlowPostProcessingActions) {
10
+ /// No actions
11
+ GSKScanFlowPostProcessingActionNone = 0,
12
+ /// The filter action
13
+ GSKScanFlowPostProcessingActionEditFilter = 1 << 0,
14
+ /// The rotate scan action
15
+ GSKScanFlowPostProcessingActionRotate = 1 << 1,
16
+ /// The distortion (book curvature) correction
17
+ GSKScanFlowPostProcessingActionDistortionCorrection = 1 << 2,
18
+ /// All the actions
19
+ GSKScanFlowPostProcessingActionAll = NSUIntegerMax,
20
+ };
21
+
22
+ #endif
@@ -0,0 +1,13 @@
1
+ #ifndef GSKScanFlowStructuredData_h
2
+ #define GSKScanFlowStructuredData_h
3
+
4
+ /**
5
+ The types of structured data to extract.
6
+ */
7
+ typedef NS_OPTIONS(NSUInteger, GSKScanFlowStructuredData) {
8
+ GSKScanFlowStructuredDataNone = 0,
9
+ /// To scan IBAN and BIC/SWIFT codes
10
+ GSKScanFlowStructuredDataBankDetails = 1 << 0
11
+ };
12
+
13
+ #endif
@@ -277,7 +277,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
277
277
  #if __has_warning("-Watimport-in-framework-header")
278
278
  #pragma clang diagnostic ignored "-Watimport-in-framework-header"
279
279
  #endif
280
- @import CoreFoundation;
281
280
  @import Dispatch;
282
281
  @import Foundation;
283
282
  @import ObjectiveC;
@@ -304,17 +303,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
304
303
  #endif
305
304
 
306
305
  #if defined(__OBJC__)
307
- @class NSCoder;
308
- @class UIImage;
309
-
310
- SWIFT_CLASS("_TtC5GSSDK33BVImageContentViewObjCWrapperView")
311
- @interface BVImageContentViewObjCWrapperView : UIView
312
- - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
313
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
314
- - (void)setImage:(UIImage * _Nonnull)image;
315
- - (void)setZoomLimits;
316
- @end
317
-
318
306
 
319
307
 
320
308
 
@@ -523,6 +511,39 @@ SWIFT_CLASS("_TtC5GSSDK10GSKPDFSize")
523
511
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
524
512
  @end
525
513
 
514
+ @class GSKScanFlowConfiguration;
515
+ @class UIViewController;
516
+ @class GSKScanFlowResult;
517
+
518
+ /// A high-level scanner module.
519
+ /// You present it and when the user is done, you obtain a result object containing the scanned documents.
520
+ /// The scan flow can be customized with a <code>GSKScanFlowConfiguration</code> instance.
521
+ SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
522
+ @interface GSKScanFlow : NSObject
523
+ - (nonnull instancetype)initWithConfiguration:(GSKScanFlowConfiguration * _Nonnull)configuration OBJC_DESIGNATED_INITIALIZER;
524
+ /// Present the scan flow. Asynchronously returns a <code>GSKScanFlowResult</code> object, which
525
+ /// gives you access to the scanned documents, or throws any error that was encountered.
526
+ /// @param viewController The view controller to present the scan flow from.
527
+ - (void)resultByStartingFromViewController:(UIViewController * _Nonnull)viewController completionHandler:(void (^ _Nonnull)(GSKScanFlowResult * _Nullable, NSError * _Nullable))completionHandler;
528
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
529
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
530
+ @end
531
+
532
+
533
+ @interface GSKScanFlow (SWIFT_EXTENSION(GSSDK))
534
+ /// Instantiates a <code>GSKScanFlow</code> instance with the provided configuration.
535
+ /// This initializer is only available from Objective-C.
536
+ + (nonnull instancetype)scanFlowWithConfiguration:(GSKScanFlowConfiguration * _Nonnull)configuration SWIFT_WARN_UNUSED_RESULT;
537
+ /// Present the scan flow.
538
+ /// @param viewController The view controller to present the scan flow from.
539
+ /// @param completionBlock A completion block/closure that will be called on the main
540
+ /// thread upon completion of the scan flow. It receives a <code>GSKScanFlowResult</code> object as
541
+ /// a parameter. This object gives you access to the scanned documents.
542
+ /// @param errorBlock A block/closure called if an error was encountered.
543
+ - (void)startFrom:(UIViewController * _Nonnull)viewController onSuccess:(void (^ _Nonnull)(GSKScanFlowResult * _Nonnull))completionBlock failure:(void (^ _Nonnull)(NSError * _Nonnull))errorBlock;
544
+ @end
545
+
546
+
526
547
  enum GSKScanFlowSource : NSUInteger;
527
548
  @class NSURL;
528
549
  enum GSKScanFlowFilterType : NSInteger;
@@ -598,6 +619,7 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
598
619
  @end
599
620
 
600
621
 
622
+
601
623
  @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
602
624
  /// Create a configuration from a dictionary.
603
625
  /// This is particularly useful for interfacing with React Native but shouldn’t
@@ -606,6 +628,10 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
606
628
  @end
607
629
 
608
630
 
631
+ @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
632
+ - (BOOL)validate:(NSError * _Nullable * _Nullable)error;
633
+ @end
634
+
609
635
 
610
636
  /// Enum that defines various errors that can occur during a scan flow.
611
637
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
@@ -659,6 +685,7 @@ SWIFT_CLASS("_TtC5GSSDK27GSKScanFlowOCRConfiguration")
659
685
 
660
686
 
661
687
 
688
+
662
689
  /// The result of the text recognition.
663
690
  SWIFT_CLASS("_TtC5GSSDK20GSKScanFlowOCRResult")
664
691
  @interface GSKScanFlowOCRResult : NSObject
@@ -669,6 +696,7 @@ SWIFT_CLASS("_TtC5GSSDK20GSKScanFlowOCRResult")
669
696
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
670
697
  @end
671
698
 
699
+
672
700
  /// The generated PDF paper size.
673
701
  typedef SWIFT_ENUM(NSUInteger, GSKScanFlowPDFPageSize, open) {
674
702
  /// PDF page with a width of 8.27 inch (A4 width) and fitting height.
@@ -726,45 +754,6 @@ SWIFT_CLASS("_TtC5GSSDK15GSKScanFlowScan")
726
754
  @end
727
755
 
728
756
 
729
- @class GSKQuadrangle;
730
-
731
- /// The output result from a scan flow.
732
- SWIFT_CLASS("_TtC5GSSDK23GSKScanFlowScanInternal")
733
- @interface GSKScanFlowScanInternal : NSObject
734
- /// The original JPEG out of the camera.
735
- /// Note that this image might be rotated, and needs to be read with
736
- /// its EXIF orientation to be properly displayed. <code>UIImage</code> will
737
- /// properly take care of that.
738
- @property (nonatomic, readonly, copy) NSString * _Nonnull originalFilePath;
739
- /// The enhanced, processed, image.
740
- @property (nonatomic, copy) NSString * _Nonnull enhancedFilePath;
741
- /// The quadrangle that was applied during the scan flow.
742
- @property (nonatomic, strong) GSKQuadrangle * _Nonnull appliedQuadrangle;
743
- /// The filter that was applied during the scan flow.
744
- @property (nonatomic) GSKFilterType appliedFilter;
745
- /// The rotation that was applied during the scan flow.
746
- @property (nonatomic) GSKRotation appliedRotation;
747
- /// If OCR was performed, the recognized text.
748
- @property (nonatomic, strong) GSKOCRResult * _Nullable ocrResult;
749
- /// If bank details extraction was performed and successful, the
750
- /// extracted IBAN, otherwise <code>nil</code>.
751
- @property (nonatomic, copy) NSString * _Nullable structuredDataIBAN;
752
- /// If bank details extraction was performed and successful, the
753
- /// extracted BIC, otherwise <code>nil</code>.
754
- @property (nonatomic, copy) NSString * _Nullable structuredDataBIC;
755
- - (nonnull instancetype)initWithOriginalFilePath:(NSString * _Nonnull)originalFilePath enhancedFilePath:(NSString * _Nonnull)enhancedFilePath appliedQuadrangle:(GSKQuadrangle * _Nonnull)appliedQuadrangle appliedFilter:(GSKFilterType)appliedFilter appliedRotation:(GSKRotation)appliedRotation logger:(id <GSKLogger> _Nonnull)logger OBJC_DESIGNATED_INITIALIZER;
756
- /// Convenient way to access the original image as an <code>UIImage</code>
757
- - (UIImage * _Nullable)originalImage SWIFT_WARN_UNUSED_RESULT;
758
- /// Convenient way to access the processed image as an <code>UIImage</code>
759
- - (UIImage * _Nullable)enhancedImage SWIFT_WARN_UNUSED_RESULT;
760
- /// Deletes all the files related to this scan. Convenient to clean
761
- /// up after you copied what you needed.
762
- - (void)delete;
763
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
764
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
765
- @end
766
-
767
-
768
757
  /// The source for a scan flow
769
758
  typedef SWIFT_ENUM(NSUInteger, GSKScanFlowSource, open) {
770
759
  /// Scan using the camera
@@ -797,24 +786,6 @@ SWIFT_CLASS("_TtC5GSSDK42GSKScanFlowStructuredDataResultBankDetails")
797
786
  @end
798
787
 
799
788
 
800
- SWIFT_CLASS("_TtC5GSSDK21GSKSerialQueueService")
801
- @interface GSKSerialQueueService : NSObject
802
- - (void)waitForCompletion:(void (^ _Nonnull)(void))onDone;
803
- - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
804
- @end
805
-
806
-
807
- SWIFT_CLASS("_TtC5GSSDK32GSKScanFlowStructuredDataService")
808
- @interface GSKScanFlowStructuredDataService : GSKSerialQueueService
809
- SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKScanFlowStructuredDataService * _Nonnull shared;)
810
- + (GSKScanFlowStructuredDataService * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
811
- - (void)process:(GSKScanFlowScanInternal * _Nonnull)scan configuration:(GSKScanFlowConfiguration * _Nonnull)configuration;
812
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
813
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
814
- @end
815
-
816
-
817
-
818
789
  SWIFT_CLASS("_TtC5GSSDK13GSKTextLayout")
819
790
  @interface GSKTextLayout : NSObject
820
791
  @property (nonatomic, readonly, copy) NSString * _Nullable hocr;
@@ -832,72 +803,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKUIBackgro
832
803
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
833
804
  @end
834
805
 
835
- @protocol GSKUICameraViewControllerDelegate;
836
- @class UIButton;
837
- @class GSKCameraSession;
838
- @class GSKScan;
839
-
840
- /// View controller that manages the camera UI presented by <code>GSKScanFlow</code>.
841
- SWIFT_CLASS("_TtC5GSSDK25GSKUICameraViewController")
842
- @interface GSKUICameraViewController : GSKCameraViewController
843
- @property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
844
- @property (nonatomic, weak) id <GSKUICameraViewControllerDelegate> _Nullable delegate;
845
- @property (nonatomic, readonly, strong) UIButton * _Nonnull doneButton;
846
- - (nonnull instancetype)initWithSession:(GSKCameraSession * _Nonnull)session configuration:(GSKScanFlowConfiguration * _Nonnull)configuration logger:(id <GSKLogger> _Nonnull)logger OBJC_DESIGNATED_INITIALIZER;
847
- - (void)viewDidLoad;
848
- - (void)viewWillAppear:(BOOL)animated;
849
- - (void)cameraSessionDidSetup:(GSKCameraSession * _Nonnull)cameraSession;
850
- - (void)cameraSessionWillSnapPhoto:(GSKCameraSession * _Nonnull)cameraSession;
851
- - (void)cameraSessionDidSnapPhoto:(GSKCameraSession * _Nonnull)cameraSession;
852
- - (void)cameraSession:(GSKCameraSession * _Nonnull)cameraSession didGenerateScan:(GSKScan * _Nonnull)scan;
853
- - (void)cameraSession:(GSKCameraSession * _Nonnull)cameraSession didFailWithError:(NSError * _Nonnull)error;
854
- - (void)cameraSessionIsSearchingQuadrangle:(GSKCameraSession * _Nonnull)cameraSession;
855
- - (void)cameraSessionFailedToFindQuadrangle:(GSKCameraSession * _Nonnull)cameraSession;
856
- - (void)cameraSession:(GSKCameraSession * _Nonnull)cameraSession didFindQuadrangle:(GSKQuadrangle * _Nonnull)quadrangle;
857
- - (void)cameraSessionIsAboutToChooseQuadrangle:(GSKCameraSession * _Nonnull)cameraSession;
858
- - (void)cameraSession:(GSKCameraSession * _Nonnull)cameraSession willAutoTriggerWithQuadrangle:(GSKQuadrangle * _Nonnull)quadrangle;
859
- - (null_unspecified instancetype)initWithCameraSession:(GSKCameraSession * _Null_unspecified)cameraSession SWIFT_UNAVAILABLE;
860
- @end
861
-
862
-
863
-
864
- /// Delegate protocol for <code>GSKUICameraViewController</code>.
865
- SWIFT_PROTOCOL("_TtP5GSSDK33GSKUICameraViewControllerDelegate_")
866
- @protocol GSKUICameraViewControllerDelegate
867
- - (void)cameraViewControllerDidCancel:(GSKUICameraViewController * _Nonnull)viewController;
868
- - (void)cameraViewControllerDone:(GSKUICameraViewController * _Nonnull)viewController;
869
- - (void)cameraViewControllerDidSnapPhoto:(GSKUICameraViewController * _Nonnull)viewController;
870
- - (void)cameraViewController:(GSKUICameraViewController * _Nonnull)viewController didScan:(GSKScan * _Nonnull)scan onComplete:(void (^ _Nonnull)(void))onComplete;
871
- - (void)cameraViewController:(GSKUICameraViewController * _Nonnull)viewController didFailWithError:(NSError * _Nonnull)error;
872
- @end
873
-
874
-
875
- /// Document generator that can create file representations of
876
- /// scans using any format defined by <code>GSKScanFlowMultiPageFormat</code>.
877
- SWIFT_CLASS("_TtC5GSSDK22GSKUIDocumentGenerator")
878
- @interface GSKUIDocumentGenerator : NSObject
879
- /// Initialize an instance with a given multi-page document format.
880
- /// Returns <code>nil</code> if the <code>none</code> multi-page format was passed.
881
- - (nullable instancetype)initWithMultiPageFormat:(enum GSKScanFlowMultiPageFormat)multiPageFormat;
882
- /// Generate a file representation for a document derived from
883
- /// an array of scans. Returns a <code>URL</code> that points to the generated
884
- /// document, or <code>nil</code> if the document generation failed.
885
- - (NSURL * _Nullable)generateDocumentFromScans:(NSArray<GSKScanFlowScanInternal *> * _Nonnull)scans withConfiguration:(GSKScanFlowConfiguration * _Nonnull)configuration SWIFT_WARN_UNUSED_RESULT;
886
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
887
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
888
- @end
889
-
890
-
891
-
892
- SWIFT_CLASS("_TtC5GSSDK15GSKUIOCRService")
893
- @interface GSKUIOCRService : GSKSerialQueueService
894
- SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKUIOCRService * _Nonnull shared;)
895
- + (GSKUIOCRService * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
896
- @property (nonatomic, readonly) NSInteger pendingCount;
897
- - (void)process:(GSKScanFlowScanInternal * _Nonnull)scan configuration:(GSKScanFlowOCRConfiguration * _Nonnull)configuration;
898
- - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
899
- @end
900
-
901
806
 
902
807
 
903
808
  @interface GSKView (SWIFT_EXTENSION(GSSDK))
@@ -920,6 +825,9 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
920
825
 
921
826
 
922
827
 
828
+
829
+
830
+
923
831
  @interface UIViewController (SWIFT_EXTENSION(GSSDK))
924
832
  /// Return a status bar style appropriate for this view controller
925
833
  /// based on the contrast between the status bar’s contents and the
@@ -32,6 +32,10 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
32
32
  #import <GSSDK/GSKScan.h>
33
33
  #import <GSSDK/GSKTriggerDecider.h>
34
34
  #import <GSSDK/GSKMagnifierView.h>
35
+ #import <GSSDK/MBProgressHUD.h>
35
36
 
36
37
  // ScanFlow
37
- #import <GSSDK/GSKScanFlow.h>
38
+ #import <GSSDK/GSKScanFlowPostProcessingActions.h>
39
+ #import <GSSDK/GSKScanFlowStructuredData.h>
40
+ #import <GSSDK/GSKScanFlowOCROutputFormats.h>
41
+ #import <GSSDK/GSKScanFlowErrorDomain.h>