@thegrizzlylabs/react-native-genius-scan 6.2.0 → 6.3.0

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 (68) hide show
  1. package/README.md +7 -4
  2. package/android/build.gradle +1 -1
  3. package/index.d.ts +23 -1
  4. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +24 -6
  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 +1434 -154
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +57 -24
  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 +57 -24
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
  28. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
  29. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
  30. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
  31. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
  32. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
  33. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
  34. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  35. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  36. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +48 -12
  37. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  38. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1434 -154
  39. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +57 -24
  40. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  41. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +57 -24
  42. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1434 -154
  43. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +57 -24
  44. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  45. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +57 -24
  46. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
  47. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
  48. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
  49. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
  50. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  51. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
  52. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  53. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
  54. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
  55. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
  56. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
  57. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
  58. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
  59. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
  60. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
  61. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
  62. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
  63. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
  64. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
  65. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
  66. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
  67. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
  68. package/package.json +1 -1
@@ -126,7 +126,9 @@ extension GSSDK.GSKCameraViewController {
126
126
  case didFindDocument(GSSDK.GSKQuadrangle)
127
127
  case failedToFindDocument
128
128
  case photoStabilizationDidStart
129
+ case willAutoCaptureDocument(GSSDK.GSKQuadrangle)
129
130
  case willSnapPhoto(GSSDK.GSKQuadrangle)
131
+ case willCapturePhoto
130
132
  case didSnapPhoto
131
133
  case didGenerateScan(GSSDK.GSKScan)
132
134
  case didFindBarcodes([GSSDK.GSKBarcode])
@@ -233,7 +235,9 @@ extension GSSDK.GSKCameraViewController {
233
235
  @objc @_Concurrency.MainActor optional func cameraViewControllerFailedToFindDocument(_ cameraViewController: GSSDK.GSKCameraViewController)
234
236
  @objc @_Concurrency.MainActor optional func cameraViewControllerPhotoStabilizationDidStart(_ cameraViewController: GSSDK.GSKCameraViewController)
235
237
  @objc @_Concurrency.MainActor optional func cameraViewControllerShouldSnapPhoto(_ cameraViewController: GSSDK.GSKCameraViewController) -> Swift.Bool
238
+ @objc @_Concurrency.MainActor optional func cameraViewControllerWillCapturePhoto(_ cameraViewController: GSSDK.GSKCameraViewController)
236
239
  @objc @_Concurrency.MainActor optional func cameraViewController(_ cameraViewController: GSSDK.GSKCameraViewController, willSnapPhotoWithQuadrangle quadrangle: GSSDK.GSKQuadrangle)
240
+ @objc @_Concurrency.MainActor optional func cameraViewController(_ cameraViewController: GSSDK.GSKCameraViewController, willAutoCaptureDocumentWithQuadrangle quadrangle: GSSDK.GSKQuadrangle)
237
241
  @objc @_Concurrency.MainActor optional func cameraViewControllerDidSnapPhoto(_ cameraViewController: GSSDK.GSKCameraViewController)
238
242
  @objc @_Concurrency.MainActor optional func cameraViewController(_ cameraViewController: GSSDK.GSKCameraViewController, didGenerateScan scan: GSSDK.GSKScan)
239
243
  @objc @_Concurrency.MainActor optional func cameraViewController(_ cameraViewController: GSSDK.GSKCameraViewController, didFindBarcodes barcodes: [GSSDK.GSKBarcode])
@@ -595,7 +599,7 @@ extension GSSDK.GSKDocumentGeneratorError : Swift.Error {
595
599
  final public let wordCount: Swift.Int
596
600
  @objc deinit
597
601
  }
598
- public enum GSSDKAsset {
602
+ public enum GSSDKAsset : Swift.Sendable {
599
603
  public static let artboardExpand: GSSDK.GSSDKImages
600
604
  public static let blurIndicator: GSSDK.GSSDKImages
601
605
  public static let perspectiveGrid: GSSDK.GSSDKImages
@@ -603,10 +607,8 @@ public enum GSSDKAsset {
603
607
  public static let rotateBack: GSSDK.GSSDKImages
604
608
  public static let straightenedPerspectiveGrid: GSSDK.GSSDKImages
605
609
  }
606
- public struct GSSDKImages {
607
- public var name: Swift.String {
608
- get
609
- }
610
+ public struct GSSDKImages : Swift.Sendable {
611
+ public let name: Swift.String
610
612
  public typealias Image = UIKit.UIImage
611
613
  public var image: GSSDK.GSSDKImages.Image {
612
614
  get
@@ -622,23 +624,23 @@ extension SwiftUICore.Image {
622
624
  public init(asset: GSSDK.GSSDKImages, label: SwiftUICore.Text)
623
625
  public init(decorative asset: GSSDK.GSSDKImages)
624
626
  }
625
- @_inheritsConvenienceInitializers @objc public class GSSDKResources : ObjectiveC.NSObject {
626
- @objc public class var bundle: Foundation.Bundle {
627
+ @_inheritsConvenienceInitializers @objc final public class GSSDKResources : ObjectiveC.NSObject {
628
+ @objc nonisolated final public class var bundle: Foundation.Bundle {
627
629
  @objc get
628
630
  }
629
631
  @objc override dynamic public init()
630
632
  @objc deinit
631
633
  }
632
- public enum GSSDKStrings {
634
+ public enum GSSDKStrings : Swift.Sendable {
633
635
  public enum Gssdk {
634
636
  public static let gssdkSettings: Swift.String
635
- public enum Accessibility {
636
- public enum Value {
637
+ public enum Accessibility : Swift.Sendable {
638
+ public enum Value : Swift.Sendable {
637
639
  public static let off: Swift.String
638
640
  public static let on: Swift.String
639
641
  }
640
642
  }
641
- public enum Action {
643
+ public enum Action : Swift.Sendable {
642
644
  public static let back: Swift.String
643
645
  public static let cancel: Swift.String
644
646
  public static let capture: Swift.String
@@ -657,27 +659,28 @@ public enum GSSDKStrings {
657
659
  public static let photoLibrary: Swift.String
658
660
  public static let recrop: Swift.String
659
661
  public static let rotateLeft: Swift.String
662
+ public static let save: Swift.String
660
663
  public static let selectAll: Swift.String
661
664
  public static let submit: Swift.String
662
- public enum ChangeFilter {
665
+ public enum ChangeFilter : Swift.Sendable {
663
666
  public static let short: Swift.String
664
667
  }
665
- public enum DistortionCorrection {
668
+ public enum DistortionCorrection : Swift.Sendable {
666
669
  public static let short: Swift.String
667
670
  }
668
- public enum RotateLeft {
671
+ public enum RotateLeft : Swift.Sendable {
669
672
  public static let short: Swift.String
670
673
  }
671
674
  }
672
- public enum Crop {
675
+ public enum Crop : Swift.Sendable {
673
676
  public static let detect: Swift.String
674
677
  public static let maximize: Swift.String
675
678
  }
676
- public enum Error {
679
+ public enum Error : Swift.Sendable {
677
680
  public static func cameraPermissionDeniedMessage(_ p1: Any) -> Swift.String
678
681
  public static func cameraPermissionDeniedTitle(_ p1: Any) -> Swift.String
679
682
  }
680
- public enum Filter {
683
+ public enum Filter : Swift.Sendable {
681
684
  public static let automatic: Swift.String
682
685
  public static let automaticBlackAndWhite: Swift.String
683
686
  public static let automaticColor: Swift.String
@@ -692,15 +695,15 @@ public enum GSSDKStrings {
692
695
  public static let strongColor: Swift.String
693
696
  public static let strongMonochrome: Swift.String
694
697
  }
695
- public enum Flash {
698
+ public enum Flash : Swift.Sendable {
696
699
  public static let mode: Swift.String
697
- public enum Mode {
700
+ public enum Mode : Swift.Sendable {
698
701
  public static let auto: Swift.String
699
702
  public static let off: Swift.String
700
703
  public static let on: Swift.String
701
704
  }
702
705
  }
703
- public enum Flow {
706
+ public enum Flow : Swift.Sendable {
704
707
  public static let addPage: Swift.String
705
708
  public static let addPages: Swift.String
706
709
  public static let cancel: Swift.String
@@ -711,20 +714,20 @@ public enum GSSDKStrings {
711
714
  public static func prefixedPageOrder(_ p1: Swift.Int, _ p2: Swift.Int) -> Swift.String
712
715
  public static let retake: Swift.String
713
716
  public static let reviewAndSubmit: Swift.String
714
- public enum ConfirmCancellation {
717
+ public enum ConfirmCancellation : Swift.Sendable {
715
718
  public static let keepScanning: Swift.String
716
719
  }
717
- public enum Progress {
720
+ public enum Progress : Swift.Sendable {
718
721
  public static let generatingDocument: Swift.String
719
722
  public static let recognizingText: Swift.String
720
723
  }
721
724
  }
722
- public enum ReadableCodeFlowBatch {
725
+ public enum ReadableCodeFlowBatch : Swift.Sendable {
723
726
  public static let empty: Swift.String
724
727
  public static let scannedCodes: Swift.String
725
728
  public static func scannedCodesCount(_ p1: Swift.Int) -> Swift.String
726
729
  }
727
- public enum UserGuidance {
730
+ public enum UserGuidance : Swift.Sendable {
728
731
  public static let documentFound: Swift.String
729
732
  public static let dragPages: Swift.String
730
733
  public static let readability: Swift.String
@@ -793,6 +796,32 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
793
796
  @_Concurrency.MainActor public static func scanFlowWithConfiguration(_ configuration: GSSDK.GSKScanFlowConfiguration) -> Self
794
797
  @objc(startFromViewController:onSuccess:failure:) nonisolated final public func start(from viewController: UIKit.UIViewController, onSuccess completionBlock: @escaping (GSSDK.GSKScanFlowResult) -> Swift.Void, failure errorBlock: @escaping (any Swift.Error) -> Swift.Void)
795
798
  }
799
+ public enum GSKAutoCropConfidenceLevel : Swift.String, Swift.CaseIterable {
800
+ case lowest
801
+ case low
802
+ case medium
803
+ case high
804
+ case highest
805
+ public init?(rawValue: Swift.String)
806
+ public typealias AllCases = [GSSDK.GSKAutoCropConfidenceLevel]
807
+ public typealias RawValue = Swift.String
808
+ nonisolated public static var allCases: [GSSDK.GSKAutoCropConfidenceLevel] {
809
+ get
810
+ }
811
+ public var rawValue: Swift.String {
812
+ get
813
+ }
814
+ }
815
+ public enum GSKCropValidation : Swift.Hashable {
816
+ case never
817
+ case always
818
+ case whenConfidenceBelowOrEqual(GSSDK.GSKAutoCropConfidenceLevel)
819
+ public static func == (a: GSSDK.GSKCropValidation, b: GSSDK.GSKCropValidation) -> Swift.Bool
820
+ public func hash(into hasher: inout Swift.Hasher)
821
+ public var hashValue: Swift.Int {
822
+ get
823
+ }
824
+ }
796
825
  @objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowConfiguration : ObjectiveC.NSObject {
797
826
  @objc final public var source: GSSDK.GSKScanFlowSource
798
827
  @objc final public var sourceImageURL: Foundation.URL?
@@ -805,6 +834,7 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
805
834
  @objc final public var skipPostProcessingScreen: Swift.Bool
806
835
  @objc final public var postProcessingActions: GSSDK.GSKScanFlowPostProcessingActions
807
836
  final public var defaultCurvatureCorrectionMode: GSSDK.GSKScanFlowCurvatureCorrectionMode
837
+ final public var showCropValidation: GSSDK.GSKCropValidation
808
838
  @objc final public var pdfPageSize: GSSDK.GSKScanFlowPDFPageSize
809
839
  @objc final public var flashButtonHidden: Swift.Bool
810
840
  @objc final public var photoLibraryButtonHidden: Swift.Bool
@@ -1178,6 +1208,9 @@ extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
1178
1208
  extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
1179
1209
  extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
1180
1210
  extension GSSDK.GSKScanFlow : Swift.Sendable {}
1211
+ extension GSSDK.GSKAutoCropConfidenceLevel : Swift.Equatable {}
1212
+ extension GSSDK.GSKAutoCropConfidenceLevel : Swift.Hashable {}
1213
+ extension GSSDK.GSKAutoCropConfidenceLevel : Swift.RawRepresentable {}
1181
1214
  extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Equatable {}
1182
1215
  extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Hashable {}
1183
1216
  extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.RawRepresentable {}
@@ -126,7 +126,9 @@ extension GSSDK.GSKCameraViewController {
126
126
  case didFindDocument(GSSDK.GSKQuadrangle)
127
127
  case failedToFindDocument
128
128
  case photoStabilizationDidStart
129
+ case willAutoCaptureDocument(GSSDK.GSKQuadrangle)
129
130
  case willSnapPhoto(GSSDK.GSKQuadrangle)
131
+ case willCapturePhoto
130
132
  case didSnapPhoto
131
133
  case didGenerateScan(GSSDK.GSKScan)
132
134
  case didFindBarcodes([GSSDK.GSKBarcode])
@@ -233,7 +235,9 @@ extension GSSDK.GSKCameraViewController {
233
235
  @objc @_Concurrency.MainActor optional func cameraViewControllerFailedToFindDocument(_ cameraViewController: GSSDK.GSKCameraViewController)
234
236
  @objc @_Concurrency.MainActor optional func cameraViewControllerPhotoStabilizationDidStart(_ cameraViewController: GSSDK.GSKCameraViewController)
235
237
  @objc @_Concurrency.MainActor optional func cameraViewControllerShouldSnapPhoto(_ cameraViewController: GSSDK.GSKCameraViewController) -> Swift.Bool
238
+ @objc @_Concurrency.MainActor optional func cameraViewControllerWillCapturePhoto(_ cameraViewController: GSSDK.GSKCameraViewController)
236
239
  @objc @_Concurrency.MainActor optional func cameraViewController(_ cameraViewController: GSSDK.GSKCameraViewController, willSnapPhotoWithQuadrangle quadrangle: GSSDK.GSKQuadrangle)
240
+ @objc @_Concurrency.MainActor optional func cameraViewController(_ cameraViewController: GSSDK.GSKCameraViewController, willAutoCaptureDocumentWithQuadrangle quadrangle: GSSDK.GSKQuadrangle)
237
241
  @objc @_Concurrency.MainActor optional func cameraViewControllerDidSnapPhoto(_ cameraViewController: GSSDK.GSKCameraViewController)
238
242
  @objc @_Concurrency.MainActor optional func cameraViewController(_ cameraViewController: GSSDK.GSKCameraViewController, didGenerateScan scan: GSSDK.GSKScan)
239
243
  @objc @_Concurrency.MainActor optional func cameraViewController(_ cameraViewController: GSSDK.GSKCameraViewController, didFindBarcodes barcodes: [GSSDK.GSKBarcode])
@@ -595,7 +599,7 @@ extension GSSDK.GSKDocumentGeneratorError : Swift.Error {
595
599
  final public let wordCount: Swift.Int
596
600
  @objc deinit
597
601
  }
598
- public enum GSSDKAsset {
602
+ public enum GSSDKAsset : Swift.Sendable {
599
603
  public static let artboardExpand: GSSDK.GSSDKImages
600
604
  public static let blurIndicator: GSSDK.GSSDKImages
601
605
  public static let perspectiveGrid: GSSDK.GSSDKImages
@@ -603,10 +607,8 @@ public enum GSSDKAsset {
603
607
  public static let rotateBack: GSSDK.GSSDKImages
604
608
  public static let straightenedPerspectiveGrid: GSSDK.GSSDKImages
605
609
  }
606
- public struct GSSDKImages {
607
- public var name: Swift.String {
608
- get
609
- }
610
+ public struct GSSDKImages : Swift.Sendable {
611
+ public let name: Swift.String
610
612
  public typealias Image = UIKit.UIImage
611
613
  public var image: GSSDK.GSSDKImages.Image {
612
614
  get
@@ -622,23 +624,23 @@ extension SwiftUICore.Image {
622
624
  public init(asset: GSSDK.GSSDKImages, label: SwiftUICore.Text)
623
625
  public init(decorative asset: GSSDK.GSSDKImages)
624
626
  }
625
- @_inheritsConvenienceInitializers @objc public class GSSDKResources : ObjectiveC.NSObject {
626
- @objc public class var bundle: Foundation.Bundle {
627
+ @_inheritsConvenienceInitializers @objc final public class GSSDKResources : ObjectiveC.NSObject {
628
+ @objc nonisolated final public class var bundle: Foundation.Bundle {
627
629
  @objc get
628
630
  }
629
631
  @objc override dynamic public init()
630
632
  @objc deinit
631
633
  }
632
- public enum GSSDKStrings {
634
+ public enum GSSDKStrings : Swift.Sendable {
633
635
  public enum Gssdk {
634
636
  public static let gssdkSettings: Swift.String
635
- public enum Accessibility {
636
- public enum Value {
637
+ public enum Accessibility : Swift.Sendable {
638
+ public enum Value : Swift.Sendable {
637
639
  public static let off: Swift.String
638
640
  public static let on: Swift.String
639
641
  }
640
642
  }
641
- public enum Action {
643
+ public enum Action : Swift.Sendable {
642
644
  public static let back: Swift.String
643
645
  public static let cancel: Swift.String
644
646
  public static let capture: Swift.String
@@ -657,27 +659,28 @@ public enum GSSDKStrings {
657
659
  public static let photoLibrary: Swift.String
658
660
  public static let recrop: Swift.String
659
661
  public static let rotateLeft: Swift.String
662
+ public static let save: Swift.String
660
663
  public static let selectAll: Swift.String
661
664
  public static let submit: Swift.String
662
- public enum ChangeFilter {
665
+ public enum ChangeFilter : Swift.Sendable {
663
666
  public static let short: Swift.String
664
667
  }
665
- public enum DistortionCorrection {
668
+ public enum DistortionCorrection : Swift.Sendable {
666
669
  public static let short: Swift.String
667
670
  }
668
- public enum RotateLeft {
671
+ public enum RotateLeft : Swift.Sendable {
669
672
  public static let short: Swift.String
670
673
  }
671
674
  }
672
- public enum Crop {
675
+ public enum Crop : Swift.Sendable {
673
676
  public static let detect: Swift.String
674
677
  public static let maximize: Swift.String
675
678
  }
676
- public enum Error {
679
+ public enum Error : Swift.Sendable {
677
680
  public static func cameraPermissionDeniedMessage(_ p1: Any) -> Swift.String
678
681
  public static func cameraPermissionDeniedTitle(_ p1: Any) -> Swift.String
679
682
  }
680
- public enum Filter {
683
+ public enum Filter : Swift.Sendable {
681
684
  public static let automatic: Swift.String
682
685
  public static let automaticBlackAndWhite: Swift.String
683
686
  public static let automaticColor: Swift.String
@@ -692,15 +695,15 @@ public enum GSSDKStrings {
692
695
  public static let strongColor: Swift.String
693
696
  public static let strongMonochrome: Swift.String
694
697
  }
695
- public enum Flash {
698
+ public enum Flash : Swift.Sendable {
696
699
  public static let mode: Swift.String
697
- public enum Mode {
700
+ public enum Mode : Swift.Sendable {
698
701
  public static let auto: Swift.String
699
702
  public static let off: Swift.String
700
703
  public static let on: Swift.String
701
704
  }
702
705
  }
703
- public enum Flow {
706
+ public enum Flow : Swift.Sendable {
704
707
  public static let addPage: Swift.String
705
708
  public static let addPages: Swift.String
706
709
  public static let cancel: Swift.String
@@ -711,20 +714,20 @@ public enum GSSDKStrings {
711
714
  public static func prefixedPageOrder(_ p1: Swift.Int, _ p2: Swift.Int) -> Swift.String
712
715
  public static let retake: Swift.String
713
716
  public static let reviewAndSubmit: Swift.String
714
- public enum ConfirmCancellation {
717
+ public enum ConfirmCancellation : Swift.Sendable {
715
718
  public static let keepScanning: Swift.String
716
719
  }
717
- public enum Progress {
720
+ public enum Progress : Swift.Sendable {
718
721
  public static let generatingDocument: Swift.String
719
722
  public static let recognizingText: Swift.String
720
723
  }
721
724
  }
722
- public enum ReadableCodeFlowBatch {
725
+ public enum ReadableCodeFlowBatch : Swift.Sendable {
723
726
  public static let empty: Swift.String
724
727
  public static let scannedCodes: Swift.String
725
728
  public static func scannedCodesCount(_ p1: Swift.Int) -> Swift.String
726
729
  }
727
- public enum UserGuidance {
730
+ public enum UserGuidance : Swift.Sendable {
728
731
  public static let documentFound: Swift.String
729
732
  public static let dragPages: Swift.String
730
733
  public static let readability: Swift.String
@@ -793,6 +796,32 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
793
796
  @_Concurrency.MainActor public static func scanFlowWithConfiguration(_ configuration: GSSDK.GSKScanFlowConfiguration) -> Self
794
797
  @objc(startFromViewController:onSuccess:failure:) nonisolated final public func start(from viewController: UIKit.UIViewController, onSuccess completionBlock: @escaping (GSSDK.GSKScanFlowResult) -> Swift.Void, failure errorBlock: @escaping (any Swift.Error) -> Swift.Void)
795
798
  }
799
+ public enum GSKAutoCropConfidenceLevel : Swift.String, Swift.CaseIterable {
800
+ case lowest
801
+ case low
802
+ case medium
803
+ case high
804
+ case highest
805
+ public init?(rawValue: Swift.String)
806
+ public typealias AllCases = [GSSDK.GSKAutoCropConfidenceLevel]
807
+ public typealias RawValue = Swift.String
808
+ nonisolated public static var allCases: [GSSDK.GSKAutoCropConfidenceLevel] {
809
+ get
810
+ }
811
+ public var rawValue: Swift.String {
812
+ get
813
+ }
814
+ }
815
+ public enum GSKCropValidation : Swift.Hashable {
816
+ case never
817
+ case always
818
+ case whenConfidenceBelowOrEqual(GSSDK.GSKAutoCropConfidenceLevel)
819
+ public static func == (a: GSSDK.GSKCropValidation, b: GSSDK.GSKCropValidation) -> Swift.Bool
820
+ public func hash(into hasher: inout Swift.Hasher)
821
+ public var hashValue: Swift.Int {
822
+ get
823
+ }
824
+ }
796
825
  @objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowConfiguration : ObjectiveC.NSObject {
797
826
  @objc final public var source: GSSDK.GSKScanFlowSource
798
827
  @objc final public var sourceImageURL: Foundation.URL?
@@ -805,6 +834,7 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
805
834
  @objc final public var skipPostProcessingScreen: Swift.Bool
806
835
  @objc final public var postProcessingActions: GSSDK.GSKScanFlowPostProcessingActions
807
836
  final public var defaultCurvatureCorrectionMode: GSSDK.GSKScanFlowCurvatureCorrectionMode
837
+ final public var showCropValidation: GSSDK.GSKCropValidation
808
838
  @objc final public var pdfPageSize: GSSDK.GSKScanFlowPDFPageSize
809
839
  @objc final public var flashButtonHidden: Swift.Bool
810
840
  @objc final public var photoLibraryButtonHidden: Swift.Bool
@@ -1178,6 +1208,9 @@ extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
1178
1208
  extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
1179
1209
  extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
1180
1210
  extension GSSDK.GSKScanFlow : Swift.Sendable {}
1211
+ extension GSSDK.GSKAutoCropConfidenceLevel : Swift.Equatable {}
1212
+ extension GSSDK.GSKAutoCropConfidenceLevel : Swift.Hashable {}
1213
+ extension GSSDK.GSKAutoCropConfidenceLevel : Swift.RawRepresentable {}
1181
1214
  extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Equatable {}
1182
1215
  extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Hashable {}
1183
1216
  extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.RawRepresentable {}
@@ -765,7 +765,7 @@ SWIFT_PROTOCOL("_TtP5GSSDK31GSKCameraViewControllerDelegate_")
765
765
  /// \param cameraViewController The camera view controller
766
766
  ///
767
767
  - (void)cameraViewControllerFailedToFindDocument:(GSKCameraViewController * _Nonnull)cameraViewController;
768
- /// The camera view controller real-time document detection will soon take the photo of a quadrangle, but if the document
768
+ /// The camera view controller real-time document detection will soon capture a detected document, but if the document
769
769
  /// detection is not stable enough, the process can still be
770
770
  /// cancelled.
771
771
  /// It’s a good time to tell the user to remain stable.
@@ -773,18 +773,36 @@ SWIFT_PROTOCOL("_TtP5GSSDK31GSKCameraViewControllerDelegate_")
773
773
  /// \param cameraViewController The camera view controller
774
774
  ///
775
775
  - (void)cameraViewControllerPhotoStabilizationDidStart:(GSKCameraViewController * _Nonnull)cameraViewController;
776
- /// The camera view controller is about to decide whether to automatically take a photo because the detection was stable enough.
776
+ /// The camera view controller is about to decide whether to automatically capture a detected document because the detection was stable enough.
777
777
  /// This is an override point where you can return <code>false</code> to stop that automatic process from proceeding.
778
778
  /// \param cameraViewController The camera view controller
779
779
  ///
780
780
  - (BOOL)cameraViewControllerShouldSnapPhoto:(GSKCameraViewController * _Nonnull)cameraViewController SWIFT_WARN_UNUSED_RESULT;
781
- /// The camera view controller is going to automatically take a photo because the detection was stable enough.
782
- /// The photo taking is underway and cannot be interrupted at this stage.
781
+ /// The camera view controller is going to capture a photo, whether the capture was triggered manually or automatically.
782
+ /// When the capture is automatic, this is called after <code>cameraViewController:willAutoCaptureDocumentWithQuadrangle:</code>.
783
783
  /// \param cameraViewController The camera view controller
784
784
  ///
785
- /// \param quadrangle The quadrangle of the document that will be photographed.
785
+ - (void)cameraViewControllerWillCapturePhoto:(GSKCameraViewController * _Nonnull)cameraViewController;
786
+ /// The camera view controller is going to automatically capture a detected document because the detection was stable enough.
787
+ /// The automatic capture is about to start and cannot be interrupted at this stage.
788
+ /// <ul>
789
+ /// <li>
790
+ /// Deprecated: Use <code>cameraViewController(_:willAutoCaptureDocumentWithQuadrangle:)</code> for automatic document captures
791
+ /// or <code>cameraViewControllerWillCapturePhoto(_:)</code> for any capture.
792
+ /// </li>
793
+ /// </ul>
794
+ /// \param cameraViewController The camera view controller
795
+ ///
796
+ /// \param quadrangle The quadrangle of the document that will be captured.
786
797
  ///
787
798
  - (void)cameraViewController:(GSKCameraViewController * _Nonnull)cameraViewController willSnapPhotoWithQuadrangle:(GSKQuadrangle * _Nonnull)quadrangle;
799
+ /// The camera view controller is going to automatically capture a detected document because the detection was stable enough.
800
+ /// The automatic capture is about to start and cannot be interrupted at this stage.
801
+ /// \param cameraViewController The camera view controller
802
+ ///
803
+ /// \param quadrangle The quadrangle of the document that will be captured.
804
+ ///
805
+ - (void)cameraViewController:(GSKCameraViewController * _Nonnull)cameraViewController willAutoCaptureDocumentWithQuadrangle:(GSKQuadrangle * _Nonnull)quadrangle;
788
806
  /// The camera view controller just took a photo, but it hasn’t been post-processed it yet
789
807
  /// \param cameraViewController The camera view controller
790
808
  ///
@@ -1378,7 +1396,7 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
1378
1396
  /// Whether the photo library button should be hidden during camera-based scan flows. Defaults to <code>false</code>.
1379
1397
  @property (nonatomic) BOOL photoLibraryButtonHidden;
1380
1398
  /// Determines the default flash mode. Combine this with <code>flashButtonHidden</code>
1381
- /// if you want to only allow a specific flash mode. Defaults to <code>.auto</code>.
1399
+ /// if you want to only allow a specific flash mode. Defaults to <code>.off</code>.
1382
1400
  @property (nonatomic) enum GSKScanFlowFlashMode defaultFlashMode;
1383
1401
  /// Determines the document format. Defaults to <code>.PDF</code>.
1384
1402
  @property (nonatomic) enum GSKScanFlowMultiPageFormat multiPageFormat;
@@ -2572,7 +2590,7 @@ SWIFT_PROTOCOL("_TtP5GSSDK31GSKCameraViewControllerDelegate_")
2572
2590
  /// \param cameraViewController The camera view controller
2573
2591
  ///
2574
2592
  - (void)cameraViewControllerFailedToFindDocument:(GSKCameraViewController * _Nonnull)cameraViewController;
2575
- /// The camera view controller real-time document detection will soon take the photo of a quadrangle, but if the document
2593
+ /// The camera view controller real-time document detection will soon capture a detected document, but if the document
2576
2594
  /// detection is not stable enough, the process can still be
2577
2595
  /// cancelled.
2578
2596
  /// It’s a good time to tell the user to remain stable.
@@ -2580,18 +2598,36 @@ SWIFT_PROTOCOL("_TtP5GSSDK31GSKCameraViewControllerDelegate_")
2580
2598
  /// \param cameraViewController The camera view controller
2581
2599
  ///
2582
2600
  - (void)cameraViewControllerPhotoStabilizationDidStart:(GSKCameraViewController * _Nonnull)cameraViewController;
2583
- /// The camera view controller is about to decide whether to automatically take a photo because the detection was stable enough.
2601
+ /// The camera view controller is about to decide whether to automatically capture a detected document because the detection was stable enough.
2584
2602
  /// This is an override point where you can return <code>false</code> to stop that automatic process from proceeding.
2585
2603
  /// \param cameraViewController The camera view controller
2586
2604
  ///
2587
2605
  - (BOOL)cameraViewControllerShouldSnapPhoto:(GSKCameraViewController * _Nonnull)cameraViewController SWIFT_WARN_UNUSED_RESULT;
2588
- /// The camera view controller is going to automatically take a photo because the detection was stable enough.
2589
- /// The photo taking is underway and cannot be interrupted at this stage.
2606
+ /// The camera view controller is going to capture a photo, whether the capture was triggered manually or automatically.
2607
+ /// When the capture is automatic, this is called after <code>cameraViewController:willAutoCaptureDocumentWithQuadrangle:</code>.
2590
2608
  /// \param cameraViewController The camera view controller
2591
2609
  ///
2592
- /// \param quadrangle The quadrangle of the document that will be photographed.
2610
+ - (void)cameraViewControllerWillCapturePhoto:(GSKCameraViewController * _Nonnull)cameraViewController;
2611
+ /// The camera view controller is going to automatically capture a detected document because the detection was stable enough.
2612
+ /// The automatic capture is about to start and cannot be interrupted at this stage.
2613
+ /// <ul>
2614
+ /// <li>
2615
+ /// Deprecated: Use <code>cameraViewController(_:willAutoCaptureDocumentWithQuadrangle:)</code> for automatic document captures
2616
+ /// or <code>cameraViewControllerWillCapturePhoto(_:)</code> for any capture.
2617
+ /// </li>
2618
+ /// </ul>
2619
+ /// \param cameraViewController The camera view controller
2620
+ ///
2621
+ /// \param quadrangle The quadrangle of the document that will be captured.
2593
2622
  ///
2594
2623
  - (void)cameraViewController:(GSKCameraViewController * _Nonnull)cameraViewController willSnapPhotoWithQuadrangle:(GSKQuadrangle * _Nonnull)quadrangle;
2624
+ /// The camera view controller is going to automatically capture a detected document because the detection was stable enough.
2625
+ /// The automatic capture is about to start and cannot be interrupted at this stage.
2626
+ /// \param cameraViewController The camera view controller
2627
+ ///
2628
+ /// \param quadrangle The quadrangle of the document that will be captured.
2629
+ ///
2630
+ - (void)cameraViewController:(GSKCameraViewController * _Nonnull)cameraViewController willAutoCaptureDocumentWithQuadrangle:(GSKQuadrangle * _Nonnull)quadrangle;
2595
2631
  /// The camera view controller just took a photo, but it hasn’t been post-processed it yet
2596
2632
  /// \param cameraViewController The camera view controller
2597
2633
  ///
@@ -3185,7 +3221,7 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
3185
3221
  /// Whether the photo library button should be hidden during camera-based scan flows. Defaults to <code>false</code>.
3186
3222
  @property (nonatomic) BOOL photoLibraryButtonHidden;
3187
3223
  /// Determines the default flash mode. Combine this with <code>flashButtonHidden</code>
3188
- /// if you want to only allow a specific flash mode. Defaults to <code>.auto</code>.
3224
+ /// if you want to only allow a specific flash mode. Defaults to <code>.off</code>.
3189
3225
  @property (nonatomic) enum GSKScanFlowFlashMode defaultFlashMode;
3190
3226
  /// Determines the document format. Defaults to <code>.PDF</code>.
3191
3227
  @property (nonatomic) enum GSKScanFlowMultiPageFormat multiPageFormat;