@thegrizzlylabs/react-native-genius-scan 6.1.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.
- package/README.md +7 -4
- package/android/build.gradle +1 -1
- package/index.d.ts +23 -1
- package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -9
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentDetector.h +21 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +35 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +2063 -173
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +64 -24
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +64 -24
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentDetector.h +21 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +70 -14
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2063 -173
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +64 -24
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +64 -24
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2063 -173
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +64 -24
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +64 -24
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
- 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
|
|
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
|
|
@@ -649,31 +651,36 @@ public enum GSSDKStrings {
|
|
|
649
651
|
public static let discard: Swift.String
|
|
650
652
|
public static let distortionCorrection: Swift.String
|
|
651
653
|
public static let done: Swift.String
|
|
654
|
+
public static let edit: Swift.String
|
|
652
655
|
public static let editPages: Swift.String
|
|
656
|
+
public static let gridView: Swift.String
|
|
657
|
+
public static let listView: Swift.String
|
|
653
658
|
public static let next: Swift.String
|
|
654
659
|
public static let photoLibrary: Swift.String
|
|
655
660
|
public static let recrop: Swift.String
|
|
656
661
|
public static let rotateLeft: Swift.String
|
|
662
|
+
public static let save: Swift.String
|
|
657
663
|
public static let selectAll: Swift.String
|
|
658
|
-
public
|
|
664
|
+
public static let submit: Swift.String
|
|
665
|
+
public enum ChangeFilter : Swift.Sendable {
|
|
659
666
|
public static let short: Swift.String
|
|
660
667
|
}
|
|
661
|
-
public enum DistortionCorrection {
|
|
668
|
+
public enum DistortionCorrection : Swift.Sendable {
|
|
662
669
|
public static let short: Swift.String
|
|
663
670
|
}
|
|
664
|
-
public enum RotateLeft {
|
|
671
|
+
public enum RotateLeft : Swift.Sendable {
|
|
665
672
|
public static let short: Swift.String
|
|
666
673
|
}
|
|
667
674
|
}
|
|
668
|
-
public enum Crop {
|
|
675
|
+
public enum Crop : Swift.Sendable {
|
|
669
676
|
public static let detect: Swift.String
|
|
670
677
|
public static let maximize: Swift.String
|
|
671
678
|
}
|
|
672
|
-
public enum Error {
|
|
679
|
+
public enum Error : Swift.Sendable {
|
|
673
680
|
public static func cameraPermissionDeniedMessage(_ p1: Any) -> Swift.String
|
|
674
681
|
public static func cameraPermissionDeniedTitle(_ p1: Any) -> Swift.String
|
|
675
682
|
}
|
|
676
|
-
public enum Filter {
|
|
683
|
+
public enum Filter : Swift.Sendable {
|
|
677
684
|
public static let automatic: Swift.String
|
|
678
685
|
public static let automaticBlackAndWhite: Swift.String
|
|
679
686
|
public static let automaticColor: Swift.String
|
|
@@ -688,15 +695,15 @@ public enum GSSDKStrings {
|
|
|
688
695
|
public static let strongColor: Swift.String
|
|
689
696
|
public static let strongMonochrome: Swift.String
|
|
690
697
|
}
|
|
691
|
-
public enum Flash {
|
|
698
|
+
public enum Flash : Swift.Sendable {
|
|
692
699
|
public static let mode: Swift.String
|
|
693
|
-
public enum Mode {
|
|
700
|
+
public enum Mode : Swift.Sendable {
|
|
694
701
|
public static let auto: Swift.String
|
|
695
702
|
public static let off: Swift.String
|
|
696
703
|
public static let on: Swift.String
|
|
697
704
|
}
|
|
698
705
|
}
|
|
699
|
-
public enum Flow {
|
|
706
|
+
public enum Flow : Swift.Sendable {
|
|
700
707
|
public static let addPage: Swift.String
|
|
701
708
|
public static let addPages: Swift.String
|
|
702
709
|
public static let cancel: Swift.String
|
|
@@ -706,20 +713,21 @@ public enum GSSDKStrings {
|
|
|
706
713
|
public static func pageOrder(_ p1: Swift.Int, _ p2: Swift.Int) -> Swift.String
|
|
707
714
|
public static func prefixedPageOrder(_ p1: Swift.Int, _ p2: Swift.Int) -> Swift.String
|
|
708
715
|
public static let retake: Swift.String
|
|
709
|
-
public
|
|
716
|
+
public static let reviewAndSubmit: Swift.String
|
|
717
|
+
public enum ConfirmCancellation : Swift.Sendable {
|
|
710
718
|
public static let keepScanning: Swift.String
|
|
711
719
|
}
|
|
712
|
-
public enum Progress {
|
|
720
|
+
public enum Progress : Swift.Sendable {
|
|
713
721
|
public static let generatingDocument: Swift.String
|
|
714
722
|
public static let recognizingText: Swift.String
|
|
715
723
|
}
|
|
716
724
|
}
|
|
717
|
-
public enum ReadableCodeFlowBatch {
|
|
725
|
+
public enum ReadableCodeFlowBatch : Swift.Sendable {
|
|
718
726
|
public static let empty: Swift.String
|
|
719
727
|
public static let scannedCodes: Swift.String
|
|
720
728
|
public static func scannedCodesCount(_ p1: Swift.Int) -> Swift.String
|
|
721
729
|
}
|
|
722
|
-
public enum UserGuidance {
|
|
730
|
+
public enum UserGuidance : Swift.Sendable {
|
|
723
731
|
public static let documentFound: Swift.String
|
|
724
732
|
public static let dragPages: Swift.String
|
|
725
733
|
public static let readability: Swift.String
|
|
@@ -788,10 +796,37 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
|
788
796
|
@_Concurrency.MainActor public static func scanFlowWithConfiguration(_ configuration: GSSDK.GSKScanFlowConfiguration) -> Self
|
|
789
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)
|
|
790
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
|
+
}
|
|
791
825
|
@objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowConfiguration : ObjectiveC.NSObject {
|
|
792
826
|
@objc final public var source: GSSDK.GSKScanFlowSource
|
|
793
827
|
@objc final public var sourceImageURL: Foundation.URL?
|
|
794
828
|
@objc final public var multiPage: Swift.Bool
|
|
829
|
+
@objc final public var showFinalReview: Swift.Bool
|
|
795
830
|
@objc final public var defaultScanOrientation: GSSDK.GSKScanOrientation
|
|
796
831
|
@objc final public var defaultFilter: GSSDK.GSKScanFlowFilterType
|
|
797
832
|
final public var availableFilters: [GSSDK.GSKScanFlowFilterType]
|
|
@@ -799,11 +834,13 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
|
799
834
|
@objc final public var skipPostProcessingScreen: Swift.Bool
|
|
800
835
|
@objc final public var postProcessingActions: GSSDK.GSKScanFlowPostProcessingActions
|
|
801
836
|
final public var defaultCurvatureCorrectionMode: GSSDK.GSKScanFlowCurvatureCorrectionMode
|
|
837
|
+
final public var showCropValidation: GSSDK.GSKCropValidation
|
|
802
838
|
@objc final public var pdfPageSize: GSSDK.GSKScanFlowPDFPageSize
|
|
803
839
|
@objc final public var flashButtonHidden: Swift.Bool
|
|
804
840
|
@objc final public var photoLibraryButtonHidden: Swift.Bool
|
|
805
841
|
@objc final public var defaultFlashMode: GSSDK.GSKScanFlowFlashMode
|
|
806
842
|
@objc final public var multiPageFormat: GSSDK.GSKScanFlowMultiPageFormat
|
|
843
|
+
@objc final public var pdfPassword: Swift.String?
|
|
807
844
|
@objc final public var pdfFontFileURL: Foundation.URL?
|
|
808
845
|
@objc final public var backgroundColor: UIKit.UIColor
|
|
809
846
|
@objc final public var foregroundColor: UIKit.UIColor
|
|
@@ -1171,6 +1208,9 @@ extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
|
|
|
1171
1208
|
extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
|
|
1172
1209
|
extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
|
|
1173
1210
|
extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
1211
|
+
extension GSSDK.GSKAutoCropConfidenceLevel : Swift.Equatable {}
|
|
1212
|
+
extension GSSDK.GSKAutoCropConfidenceLevel : Swift.Hashable {}
|
|
1213
|
+
extension GSSDK.GSKAutoCropConfidenceLevel : Swift.RawRepresentable {}
|
|
1174
1214
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Equatable {}
|
|
1175
1215
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Hashable {}
|
|
1176
1216
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -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
|
|
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
|
|
@@ -649,31 +651,36 @@ public enum GSSDKStrings {
|
|
|
649
651
|
public static let discard: Swift.String
|
|
650
652
|
public static let distortionCorrection: Swift.String
|
|
651
653
|
public static let done: Swift.String
|
|
654
|
+
public static let edit: Swift.String
|
|
652
655
|
public static let editPages: Swift.String
|
|
656
|
+
public static let gridView: Swift.String
|
|
657
|
+
public static let listView: Swift.String
|
|
653
658
|
public static let next: Swift.String
|
|
654
659
|
public static let photoLibrary: Swift.String
|
|
655
660
|
public static let recrop: Swift.String
|
|
656
661
|
public static let rotateLeft: Swift.String
|
|
662
|
+
public static let save: Swift.String
|
|
657
663
|
public static let selectAll: Swift.String
|
|
658
|
-
public
|
|
664
|
+
public static let submit: Swift.String
|
|
665
|
+
public enum ChangeFilter : Swift.Sendable {
|
|
659
666
|
public static let short: Swift.String
|
|
660
667
|
}
|
|
661
|
-
public enum DistortionCorrection {
|
|
668
|
+
public enum DistortionCorrection : Swift.Sendable {
|
|
662
669
|
public static let short: Swift.String
|
|
663
670
|
}
|
|
664
|
-
public enum RotateLeft {
|
|
671
|
+
public enum RotateLeft : Swift.Sendable {
|
|
665
672
|
public static let short: Swift.String
|
|
666
673
|
}
|
|
667
674
|
}
|
|
668
|
-
public enum Crop {
|
|
675
|
+
public enum Crop : Swift.Sendable {
|
|
669
676
|
public static let detect: Swift.String
|
|
670
677
|
public static let maximize: Swift.String
|
|
671
678
|
}
|
|
672
|
-
public enum Error {
|
|
679
|
+
public enum Error : Swift.Sendable {
|
|
673
680
|
public static func cameraPermissionDeniedMessage(_ p1: Any) -> Swift.String
|
|
674
681
|
public static func cameraPermissionDeniedTitle(_ p1: Any) -> Swift.String
|
|
675
682
|
}
|
|
676
|
-
public enum Filter {
|
|
683
|
+
public enum Filter : Swift.Sendable {
|
|
677
684
|
public static let automatic: Swift.String
|
|
678
685
|
public static let automaticBlackAndWhite: Swift.String
|
|
679
686
|
public static let automaticColor: Swift.String
|
|
@@ -688,15 +695,15 @@ public enum GSSDKStrings {
|
|
|
688
695
|
public static let strongColor: Swift.String
|
|
689
696
|
public static let strongMonochrome: Swift.String
|
|
690
697
|
}
|
|
691
|
-
public enum Flash {
|
|
698
|
+
public enum Flash : Swift.Sendable {
|
|
692
699
|
public static let mode: Swift.String
|
|
693
|
-
public enum Mode {
|
|
700
|
+
public enum Mode : Swift.Sendable {
|
|
694
701
|
public static let auto: Swift.String
|
|
695
702
|
public static let off: Swift.String
|
|
696
703
|
public static let on: Swift.String
|
|
697
704
|
}
|
|
698
705
|
}
|
|
699
|
-
public enum Flow {
|
|
706
|
+
public enum Flow : Swift.Sendable {
|
|
700
707
|
public static let addPage: Swift.String
|
|
701
708
|
public static let addPages: Swift.String
|
|
702
709
|
public static let cancel: Swift.String
|
|
@@ -706,20 +713,21 @@ public enum GSSDKStrings {
|
|
|
706
713
|
public static func pageOrder(_ p1: Swift.Int, _ p2: Swift.Int) -> Swift.String
|
|
707
714
|
public static func prefixedPageOrder(_ p1: Swift.Int, _ p2: Swift.Int) -> Swift.String
|
|
708
715
|
public static let retake: Swift.String
|
|
709
|
-
public
|
|
716
|
+
public static let reviewAndSubmit: Swift.String
|
|
717
|
+
public enum ConfirmCancellation : Swift.Sendable {
|
|
710
718
|
public static let keepScanning: Swift.String
|
|
711
719
|
}
|
|
712
|
-
public enum Progress {
|
|
720
|
+
public enum Progress : Swift.Sendable {
|
|
713
721
|
public static let generatingDocument: Swift.String
|
|
714
722
|
public static let recognizingText: Swift.String
|
|
715
723
|
}
|
|
716
724
|
}
|
|
717
|
-
public enum ReadableCodeFlowBatch {
|
|
725
|
+
public enum ReadableCodeFlowBatch : Swift.Sendable {
|
|
718
726
|
public static let empty: Swift.String
|
|
719
727
|
public static let scannedCodes: Swift.String
|
|
720
728
|
public static func scannedCodesCount(_ p1: Swift.Int) -> Swift.String
|
|
721
729
|
}
|
|
722
|
-
public enum UserGuidance {
|
|
730
|
+
public enum UserGuidance : Swift.Sendable {
|
|
723
731
|
public static let documentFound: Swift.String
|
|
724
732
|
public static let dragPages: Swift.String
|
|
725
733
|
public static let readability: Swift.String
|
|
@@ -788,10 +796,37 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
|
788
796
|
@_Concurrency.MainActor public static func scanFlowWithConfiguration(_ configuration: GSSDK.GSKScanFlowConfiguration) -> Self
|
|
789
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)
|
|
790
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
|
+
}
|
|
791
825
|
@objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowConfiguration : ObjectiveC.NSObject {
|
|
792
826
|
@objc final public var source: GSSDK.GSKScanFlowSource
|
|
793
827
|
@objc final public var sourceImageURL: Foundation.URL?
|
|
794
828
|
@objc final public var multiPage: Swift.Bool
|
|
829
|
+
@objc final public var showFinalReview: Swift.Bool
|
|
795
830
|
@objc final public var defaultScanOrientation: GSSDK.GSKScanOrientation
|
|
796
831
|
@objc final public var defaultFilter: GSSDK.GSKScanFlowFilterType
|
|
797
832
|
final public var availableFilters: [GSSDK.GSKScanFlowFilterType]
|
|
@@ -799,11 +834,13 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
|
799
834
|
@objc final public var skipPostProcessingScreen: Swift.Bool
|
|
800
835
|
@objc final public var postProcessingActions: GSSDK.GSKScanFlowPostProcessingActions
|
|
801
836
|
final public var defaultCurvatureCorrectionMode: GSSDK.GSKScanFlowCurvatureCorrectionMode
|
|
837
|
+
final public var showCropValidation: GSSDK.GSKCropValidation
|
|
802
838
|
@objc final public var pdfPageSize: GSSDK.GSKScanFlowPDFPageSize
|
|
803
839
|
@objc final public var flashButtonHidden: Swift.Bool
|
|
804
840
|
@objc final public var photoLibraryButtonHidden: Swift.Bool
|
|
805
841
|
@objc final public var defaultFlashMode: GSSDK.GSKScanFlowFlashMode
|
|
806
842
|
@objc final public var multiPageFormat: GSSDK.GSKScanFlowMultiPageFormat
|
|
843
|
+
@objc final public var pdfPassword: Swift.String?
|
|
807
844
|
@objc final public var pdfFontFileURL: Foundation.URL?
|
|
808
845
|
@objc final public var backgroundColor: UIKit.UIColor
|
|
809
846
|
@objc final public var foregroundColor: UIKit.UIColor
|
|
@@ -1171,6 +1208,9 @@ extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
|
|
|
1171
1208
|
extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
|
|
1172
1209
|
extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
|
|
1173
1210
|
extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
1211
|
+
extension GSSDK.GSKAutoCropConfidenceLevel : Swift.Equatable {}
|
|
1212
|
+
extension GSSDK.GSKAutoCropConfidenceLevel : Swift.Hashable {}
|
|
1213
|
+
extension GSSDK.GSKAutoCropConfidenceLevel : Swift.RawRepresentable {}
|
|
1174
1214
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Equatable {}
|
|
1175
1215
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Hashable {}
|
|
1176
1216
|
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.RawRepresentable {}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -18,6 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
NS_ASSUME_NONNULL_BEGIN
|
|
20
20
|
|
|
21
|
+
typedef NS_CLOSED_ENUM(NSInteger, GSKQuadrangleConfidenceLevel) {
|
|
22
|
+
GSKQuadrangleConfidenceLevelLowest,
|
|
23
|
+
GSKQuadrangleConfidenceLevelLow,
|
|
24
|
+
GSKQuadrangleConfidenceLevelMedium,
|
|
25
|
+
GSKQuadrangleConfidenceLevelHigh,
|
|
26
|
+
GSKQuadrangleConfidenceLevelHighest,
|
|
27
|
+
};
|
|
28
|
+
|
|
21
29
|
/**
|
|
22
30
|
A configuration for the document detector.
|
|
23
31
|
*/
|
|
@@ -43,12 +51,25 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
43
51
|
@interface GSKDocumentDetectionResult: NSObject
|
|
44
52
|
|
|
45
53
|
- (instancetype)initWithQuadrangle:(GSKQuadrangle *)quadrangle;
|
|
54
|
+
- (instancetype)initWithQuadrangle:(GSKQuadrangle *)quadrangle
|
|
55
|
+
quadrangleConfidence:(GSKQuadrangleConfidenceLevel)quadrangleConfidence
|
|
56
|
+
hasQuadrangleConfidence:(BOOL)hasQuadrangleConfidence;
|
|
46
57
|
|
|
47
58
|
/**
|
|
48
59
|
The detected quadrangle or an empty quadrangle if no document has been detected
|
|
49
60
|
*/
|
|
50
61
|
@property (nonatomic, strong, readonly) GSKQuadrangle *quadrangle;
|
|
51
62
|
|
|
63
|
+
/**
|
|
64
|
+
The confidence associated with the detected quadrangle when available.
|
|
65
|
+
*/
|
|
66
|
+
@property (nonatomic, assign, readonly) GSKQuadrangleConfidenceLevel quadrangleConfidence;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
Indicates whether a confidence is available for the detected quadrangle.
|
|
70
|
+
*/
|
|
71
|
+
@property (nonatomic, assign, readonly) BOOL hasQuadrangleConfidence;
|
|
72
|
+
|
|
52
73
|
@end
|
|
53
74
|
|
|
54
75
|
/**
|