@thegrizzlylabs/react-native-genius-scan 5.0.0-beta7 → 5.0.0-beta8
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 +11 -2
- package/android/build.gradle +1 -1
- package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +64 -26
- 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 +2530 -2107
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +57 -32
- 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 +57 -32
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -1
- 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/GSSDK-Swift.h +128 -52
- 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 +2530 -2107
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +57 -32
- 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 +57 -32
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2530 -2107
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +57 -32
- 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 +57 -32
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -1
- package/package.json +1 -1
|
Binary file
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h
CHANGED
|
@@ -419,7 +419,7 @@ SWIFT_CLASS("_TtC5GSSDK12GSKOCRResult")
|
|
|
419
419
|
@property (nonatomic, readonly, copy) NSString * _Nonnull text;
|
|
420
420
|
/// The recognized text, as a structured text layout.
|
|
421
421
|
@property (nonatomic, readonly, strong) GSKTextLayout * _Nonnull textLayout;
|
|
422
|
-
- (nonnull instancetype)initWithText:(NSString * _Nonnull)text textLayout:(GSKTextLayout * _Nonnull)textLayout
|
|
422
|
+
- (nonnull instancetype)initWithText:(NSString * _Nonnull)text textLayout:(GSKTextLayout * _Nonnull)textLayout;
|
|
423
423
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
424
424
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
425
425
|
@end
|
|
@@ -637,6 +637,10 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
637
637
|
@end
|
|
638
638
|
|
|
639
639
|
|
|
640
|
+
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
641
|
+
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
642
|
+
@end
|
|
643
|
+
|
|
640
644
|
|
|
641
645
|
|
|
642
646
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
@@ -647,10 +651,6 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
647
651
|
@end
|
|
648
652
|
|
|
649
653
|
|
|
650
|
-
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
651
|
-
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
652
|
-
@end
|
|
653
|
-
|
|
654
654
|
/// Enum that defines various errors that can occur during a scan flow.
|
|
655
655
|
typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
|
|
656
656
|
/// User has canceled the scan flow
|
|
@@ -783,29 +783,29 @@ typedef SWIFT_ENUM(NSUInteger, GSKScanFlowSource, open) {
|
|
|
783
783
|
GSKScanFlowSourceLibrary = 2,
|
|
784
784
|
};
|
|
785
785
|
|
|
786
|
-
@class
|
|
787
|
-
@class
|
|
788
|
-
@class
|
|
786
|
+
@class GSKStructuredDataBankDetails;
|
|
787
|
+
@class GSKStructuredDataContact;
|
|
788
|
+
@class GSKStructuredDataReceipt;
|
|
789
789
|
|
|
790
790
|
/// The result of a structured data extraction.
|
|
791
791
|
SWIFT_CLASS("_TtC5GSSDK31GSKScanFlowStructuredDataResult")
|
|
792
792
|
@interface GSKScanFlowStructuredDataResult : NSObject
|
|
793
793
|
/// Present if bank details extraction was requested, <code>nil</code> otherwise.
|
|
794
|
-
@property (nonatomic, strong)
|
|
794
|
+
@property (nonatomic, strong) GSKStructuredDataBankDetails * _Nullable bankDetails;
|
|
795
795
|
/// Present if business card contact extraction was requested and a contact was
|
|
796
796
|
/// succcessfully extracted, <code>nil</code> otherwise.
|
|
797
|
-
@property (nonatomic, strong)
|
|
797
|
+
@property (nonatomic, strong) GSKStructuredDataContact * _Nullable businessCardContact;
|
|
798
798
|
/// Present if receipt extraction was requested and a receipt/invoice was
|
|
799
799
|
/// succcessfully extracted, <code>nil</code> otherwise.
|
|
800
|
-
@property (nonatomic, strong)
|
|
800
|
+
@property (nonatomic, strong) GSKStructuredDataReceipt * _Nullable receipt;
|
|
801
801
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
802
802
|
@end
|
|
803
803
|
|
|
804
804
|
|
|
805
805
|
|
|
806
806
|
/// Address data extracted from a business card document through OCR.
|
|
807
|
-
SWIFT_CLASS("
|
|
808
|
-
@interface
|
|
807
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataAddress")
|
|
808
|
+
@interface GSKStructuredDataAddress : NSObject
|
|
809
809
|
/// The city component of the address.
|
|
810
810
|
@property (nonatomic, readonly, copy) NSString * _Nullable city;
|
|
811
811
|
/// The postal/zip code component of the address.
|
|
@@ -823,30 +823,31 @@ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultAddress")
|
|
|
823
823
|
|
|
824
824
|
|
|
825
825
|
/// The bank details extracted from a document through OCR.
|
|
826
|
-
SWIFT_CLASS("
|
|
827
|
-
@interface
|
|
826
|
+
SWIFT_CLASS("_TtC5GSSDK28GSKStructuredDataBankDetails")
|
|
827
|
+
@interface GSKStructuredDataBankDetails : NSObject
|
|
828
828
|
/// The IBAN if successfully extracted, otherwise is <code>nil</code>.
|
|
829
829
|
@property (nonatomic, copy) NSString * _Nullable iban;
|
|
830
830
|
/// The BIC code if successfully extracted, otherwise is <code>nil</code>.
|
|
831
831
|
@property (nonatomic, copy) NSString * _Nullable bic;
|
|
832
|
-
- (nonnull instancetype)init
|
|
832
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
833
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
833
834
|
@end
|
|
834
835
|
|
|
835
836
|
|
|
836
|
-
@class
|
|
837
|
+
@class GSKStructuredDataPhoneNumber;
|
|
837
838
|
@class CNContact;
|
|
838
839
|
|
|
839
840
|
/// Contact data extracted from a business card document through OCR.
|
|
840
|
-
SWIFT_CLASS("
|
|
841
|
-
@interface
|
|
841
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataContact")
|
|
842
|
+
@interface GSKStructuredDataContact : NSObject
|
|
842
843
|
/// Any name that appears on the business card. Contains the full name, including all components.
|
|
843
844
|
@property (nonatomic, readonly, copy) NSString * _Nullable name;
|
|
844
845
|
/// Any organization that appears on the business card.
|
|
845
846
|
@property (nonatomic, readonly, copy) NSString * _Nullable organization;
|
|
846
847
|
/// Any address that appears on the business card.
|
|
847
|
-
@property (nonatomic, readonly, strong)
|
|
848
|
+
@property (nonatomic, readonly, strong) GSKStructuredDataAddress * _Nullable address;
|
|
848
849
|
/// The phone numbers that appear on the business card.
|
|
849
|
-
@property (nonatomic, readonly, copy) NSArray<
|
|
850
|
+
@property (nonatomic, readonly, copy) NSArray<GSKStructuredDataPhoneNumber *> * _Nonnull phoneNumbers;
|
|
850
851
|
/// The links/URLs that appear on the business card.
|
|
851
852
|
@property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull links;
|
|
852
853
|
/// The email addresses that appear on the business card.
|
|
@@ -859,9 +860,46 @@ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultContact")
|
|
|
859
860
|
|
|
860
861
|
|
|
861
862
|
|
|
863
|
+
/// Class that enables structured data to be extracted from
|
|
864
|
+
/// scanned documents.
|
|
865
|
+
SWIFT_CLASS("_TtC5GSSDK26GSKStructuredDataExtractor")
|
|
866
|
+
@interface GSKStructuredDataExtractor : NSObject
|
|
867
|
+
- (nonnull instancetype)init;
|
|
868
|
+
@end
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
@interface GSKStructuredDataExtractor (SWIFT_EXTENSION(GSSDK))
|
|
873
|
+
/// Extract any bank details that were found in a given document by
|
|
874
|
+
/// passing in the result of performing OCR on that document. Use
|
|
875
|
+
/// <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
876
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
877
|
+
/// then this method will throw an error.
|
|
878
|
+
- (void)bankDetailsFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataBankDetails * _Nullable, NSError * _Nullable))completionHandler;
|
|
879
|
+
/// Extract any business card contact that was found in a given document
|
|
880
|
+
/// by passing in the result of performing OCR on that document. Use
|
|
881
|
+
/// <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
882
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
883
|
+
/// then this method will throw an error.
|
|
884
|
+
- (void)businessCardContactFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataContact * _Nullable, NSError * _Nullable))completionHandler;
|
|
885
|
+
/// Extract any receipt/invoice information that was found in a given
|
|
886
|
+
/// document by passing in the result of performing OCR on that document.
|
|
887
|
+
/// Use <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
888
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
889
|
+
/// then this method will throw an error.
|
|
890
|
+
- (void)receiptFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataReceipt * _Nullable, NSError * _Nullable))completionHandler;
|
|
891
|
+
@end
|
|
892
|
+
|
|
893
|
+
/// Enum defining errors that can be thrown by <code>GSKStructuredDataExtractor</code>.
|
|
894
|
+
/// Note that thrown errors will be wrapped in <code>NSError</code> containers.
|
|
895
|
+
typedef SWIFT_ENUM(NSInteger, GSKStructuredDataExtractorError, open) {
|
|
896
|
+
GSKStructuredDataExtractorErrorMissingRequiredOCRMetadata = -1,
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
|
|
862
900
|
/// Phone number data extracted from a business card document through OCR.
|
|
863
|
-
SWIFT_CLASS("
|
|
864
|
-
@interface
|
|
901
|
+
SWIFT_CLASS("_TtC5GSSDK28GSKStructuredDataPhoneNumber")
|
|
902
|
+
@interface GSKStructuredDataPhoneNumber : NSObject
|
|
865
903
|
/// The label of the phone number. For example “Main”, “Office”, etc.
|
|
866
904
|
@property (nonatomic, readonly, copy) NSString * _Nonnull label;
|
|
867
905
|
/// A string representation of the phone number itself.
|
|
@@ -874,8 +912,8 @@ SWIFT_CLASS("_TtC5GSSDK42GSKScanFlowStructuredDataResultPhoneNumber")
|
|
|
874
912
|
@class NSLocale;
|
|
875
913
|
|
|
876
914
|
/// Receipt/invoice details extracted from a document through OCR.
|
|
877
|
-
SWIFT_CLASS("
|
|
878
|
-
@interface
|
|
915
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataReceipt")
|
|
916
|
+
@interface GSKStructuredDataReceipt : NSObject
|
|
879
917
|
/// The locale that the receipt is in, if successfully extracted, otherwise <code>nil</code>.
|
|
880
918
|
@property (nonatomic, readonly, copy) NSLocale * _Nullable locale;
|
|
881
919
|
/// The merchant that the receipt is from, if successfully extracted, otherwise <code>nil</code>.
|
|
@@ -931,12 +969,12 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKUIBackgro
|
|
|
931
969
|
@end
|
|
932
970
|
|
|
933
971
|
|
|
934
|
-
|
|
935
972
|
@interface GSKView (SWIFT_EXTENSION(GSSDK))
|
|
936
973
|
- (void)startSnapAnimationWithDuration:(NSTimeInterval)duration;
|
|
937
974
|
- (void)endSnapAnimation;
|
|
938
975
|
@end
|
|
939
976
|
|
|
977
|
+
|
|
940
978
|
@class NSBundle;
|
|
941
979
|
|
|
942
980
|
SWIFT_CLASS("_TtC5GSSDK14GSSDKResources")
|
|
@@ -1395,7 +1433,7 @@ SWIFT_CLASS("_TtC5GSSDK12GSKOCRResult")
|
|
|
1395
1433
|
@property (nonatomic, readonly, copy) NSString * _Nonnull text;
|
|
1396
1434
|
/// The recognized text, as a structured text layout.
|
|
1397
1435
|
@property (nonatomic, readonly, strong) GSKTextLayout * _Nonnull textLayout;
|
|
1398
|
-
- (nonnull instancetype)initWithText:(NSString * _Nonnull)text textLayout:(GSKTextLayout * _Nonnull)textLayout
|
|
1436
|
+
- (nonnull instancetype)initWithText:(NSString * _Nonnull)text textLayout:(GSKTextLayout * _Nonnull)textLayout;
|
|
1399
1437
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1400
1438
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1401
1439
|
@end
|
|
@@ -1613,6 +1651,10 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1613
1651
|
@end
|
|
1614
1652
|
|
|
1615
1653
|
|
|
1654
|
+
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1655
|
+
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
1656
|
+
@end
|
|
1657
|
+
|
|
1616
1658
|
|
|
1617
1659
|
|
|
1618
1660
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
@@ -1623,10 +1665,6 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1623
1665
|
@end
|
|
1624
1666
|
|
|
1625
1667
|
|
|
1626
|
-
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1627
|
-
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
1628
|
-
@end
|
|
1629
|
-
|
|
1630
1668
|
/// Enum that defines various errors that can occur during a scan flow.
|
|
1631
1669
|
typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
|
|
1632
1670
|
/// User has canceled the scan flow
|
|
@@ -1759,29 +1797,29 @@ typedef SWIFT_ENUM(NSUInteger, GSKScanFlowSource, open) {
|
|
|
1759
1797
|
GSKScanFlowSourceLibrary = 2,
|
|
1760
1798
|
};
|
|
1761
1799
|
|
|
1762
|
-
@class
|
|
1763
|
-
@class
|
|
1764
|
-
@class
|
|
1800
|
+
@class GSKStructuredDataBankDetails;
|
|
1801
|
+
@class GSKStructuredDataContact;
|
|
1802
|
+
@class GSKStructuredDataReceipt;
|
|
1765
1803
|
|
|
1766
1804
|
/// The result of a structured data extraction.
|
|
1767
1805
|
SWIFT_CLASS("_TtC5GSSDK31GSKScanFlowStructuredDataResult")
|
|
1768
1806
|
@interface GSKScanFlowStructuredDataResult : NSObject
|
|
1769
1807
|
/// Present if bank details extraction was requested, <code>nil</code> otherwise.
|
|
1770
|
-
@property (nonatomic, strong)
|
|
1808
|
+
@property (nonatomic, strong) GSKStructuredDataBankDetails * _Nullable bankDetails;
|
|
1771
1809
|
/// Present if business card contact extraction was requested and a contact was
|
|
1772
1810
|
/// succcessfully extracted, <code>nil</code> otherwise.
|
|
1773
|
-
@property (nonatomic, strong)
|
|
1811
|
+
@property (nonatomic, strong) GSKStructuredDataContact * _Nullable businessCardContact;
|
|
1774
1812
|
/// Present if receipt extraction was requested and a receipt/invoice was
|
|
1775
1813
|
/// succcessfully extracted, <code>nil</code> otherwise.
|
|
1776
|
-
@property (nonatomic, strong)
|
|
1814
|
+
@property (nonatomic, strong) GSKStructuredDataReceipt * _Nullable receipt;
|
|
1777
1815
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1778
1816
|
@end
|
|
1779
1817
|
|
|
1780
1818
|
|
|
1781
1819
|
|
|
1782
1820
|
/// Address data extracted from a business card document through OCR.
|
|
1783
|
-
SWIFT_CLASS("
|
|
1784
|
-
@interface
|
|
1821
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataAddress")
|
|
1822
|
+
@interface GSKStructuredDataAddress : NSObject
|
|
1785
1823
|
/// The city component of the address.
|
|
1786
1824
|
@property (nonatomic, readonly, copy) NSString * _Nullable city;
|
|
1787
1825
|
/// The postal/zip code component of the address.
|
|
@@ -1799,30 +1837,31 @@ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultAddress")
|
|
|
1799
1837
|
|
|
1800
1838
|
|
|
1801
1839
|
/// The bank details extracted from a document through OCR.
|
|
1802
|
-
SWIFT_CLASS("
|
|
1803
|
-
@interface
|
|
1840
|
+
SWIFT_CLASS("_TtC5GSSDK28GSKStructuredDataBankDetails")
|
|
1841
|
+
@interface GSKStructuredDataBankDetails : NSObject
|
|
1804
1842
|
/// The IBAN if successfully extracted, otherwise is <code>nil</code>.
|
|
1805
1843
|
@property (nonatomic, copy) NSString * _Nullable iban;
|
|
1806
1844
|
/// The BIC code if successfully extracted, otherwise is <code>nil</code>.
|
|
1807
1845
|
@property (nonatomic, copy) NSString * _Nullable bic;
|
|
1808
|
-
- (nonnull instancetype)init
|
|
1846
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1847
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1809
1848
|
@end
|
|
1810
1849
|
|
|
1811
1850
|
|
|
1812
|
-
@class
|
|
1851
|
+
@class GSKStructuredDataPhoneNumber;
|
|
1813
1852
|
@class CNContact;
|
|
1814
1853
|
|
|
1815
1854
|
/// Contact data extracted from a business card document through OCR.
|
|
1816
|
-
SWIFT_CLASS("
|
|
1817
|
-
@interface
|
|
1855
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataContact")
|
|
1856
|
+
@interface GSKStructuredDataContact : NSObject
|
|
1818
1857
|
/// Any name that appears on the business card. Contains the full name, including all components.
|
|
1819
1858
|
@property (nonatomic, readonly, copy) NSString * _Nullable name;
|
|
1820
1859
|
/// Any organization that appears on the business card.
|
|
1821
1860
|
@property (nonatomic, readonly, copy) NSString * _Nullable organization;
|
|
1822
1861
|
/// Any address that appears on the business card.
|
|
1823
|
-
@property (nonatomic, readonly, strong)
|
|
1862
|
+
@property (nonatomic, readonly, strong) GSKStructuredDataAddress * _Nullable address;
|
|
1824
1863
|
/// The phone numbers that appear on the business card.
|
|
1825
|
-
@property (nonatomic, readonly, copy) NSArray<
|
|
1864
|
+
@property (nonatomic, readonly, copy) NSArray<GSKStructuredDataPhoneNumber *> * _Nonnull phoneNumbers;
|
|
1826
1865
|
/// The links/URLs that appear on the business card.
|
|
1827
1866
|
@property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull links;
|
|
1828
1867
|
/// The email addresses that appear on the business card.
|
|
@@ -1835,9 +1874,46 @@ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultContact")
|
|
|
1835
1874
|
|
|
1836
1875
|
|
|
1837
1876
|
|
|
1877
|
+
/// Class that enables structured data to be extracted from
|
|
1878
|
+
/// scanned documents.
|
|
1879
|
+
SWIFT_CLASS("_TtC5GSSDK26GSKStructuredDataExtractor")
|
|
1880
|
+
@interface GSKStructuredDataExtractor : NSObject
|
|
1881
|
+
- (nonnull instancetype)init;
|
|
1882
|
+
@end
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
@interface GSKStructuredDataExtractor (SWIFT_EXTENSION(GSSDK))
|
|
1887
|
+
/// Extract any bank details that were found in a given document by
|
|
1888
|
+
/// passing in the result of performing OCR on that document. Use
|
|
1889
|
+
/// <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
1890
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
1891
|
+
/// then this method will throw an error.
|
|
1892
|
+
- (void)bankDetailsFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataBankDetails * _Nullable, NSError * _Nullable))completionHandler;
|
|
1893
|
+
/// Extract any business card contact that was found in a given document
|
|
1894
|
+
/// by passing in the result of performing OCR on that document. Use
|
|
1895
|
+
/// <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
1896
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
1897
|
+
/// then this method will throw an error.
|
|
1898
|
+
- (void)businessCardContactFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataContact * _Nullable, NSError * _Nullable))completionHandler;
|
|
1899
|
+
/// Extract any receipt/invoice information that was found in a given
|
|
1900
|
+
/// document by passing in the result of performing OCR on that document.
|
|
1901
|
+
/// Use <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
1902
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
1903
|
+
/// then this method will throw an error.
|
|
1904
|
+
- (void)receiptFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataReceipt * _Nullable, NSError * _Nullable))completionHandler;
|
|
1905
|
+
@end
|
|
1906
|
+
|
|
1907
|
+
/// Enum defining errors that can be thrown by <code>GSKStructuredDataExtractor</code>.
|
|
1908
|
+
/// Note that thrown errors will be wrapped in <code>NSError</code> containers.
|
|
1909
|
+
typedef SWIFT_ENUM(NSInteger, GSKStructuredDataExtractorError, open) {
|
|
1910
|
+
GSKStructuredDataExtractorErrorMissingRequiredOCRMetadata = -1,
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
|
|
1838
1914
|
/// Phone number data extracted from a business card document through OCR.
|
|
1839
|
-
SWIFT_CLASS("
|
|
1840
|
-
@interface
|
|
1915
|
+
SWIFT_CLASS("_TtC5GSSDK28GSKStructuredDataPhoneNumber")
|
|
1916
|
+
@interface GSKStructuredDataPhoneNumber : NSObject
|
|
1841
1917
|
/// The label of the phone number. For example “Main”, “Office”, etc.
|
|
1842
1918
|
@property (nonatomic, readonly, copy) NSString * _Nonnull label;
|
|
1843
1919
|
/// A string representation of the phone number itself.
|
|
@@ -1850,8 +1926,8 @@ SWIFT_CLASS("_TtC5GSSDK42GSKScanFlowStructuredDataResultPhoneNumber")
|
|
|
1850
1926
|
@class NSLocale;
|
|
1851
1927
|
|
|
1852
1928
|
/// Receipt/invoice details extracted from a document through OCR.
|
|
1853
|
-
SWIFT_CLASS("
|
|
1854
|
-
@interface
|
|
1929
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataReceipt")
|
|
1930
|
+
@interface GSKStructuredDataReceipt : NSObject
|
|
1855
1931
|
/// The locale that the receipt is in, if successfully extracted, otherwise <code>nil</code>.
|
|
1856
1932
|
@property (nonatomic, readonly, copy) NSLocale * _Nullable locale;
|
|
1857
1933
|
/// The merchant that the receipt is from, if successfully extracted, otherwise <code>nil</code>.
|
|
@@ -1907,12 +1983,12 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKUIBackgro
|
|
|
1907
1983
|
@end
|
|
1908
1984
|
|
|
1909
1985
|
|
|
1910
|
-
|
|
1911
1986
|
@interface GSKView (SWIFT_EXTENSION(GSSDK))
|
|
1912
1987
|
- (void)startSnapAnimationWithDuration:(NSTimeInterval)duration;
|
|
1913
1988
|
- (void)endSnapAnimation;
|
|
1914
1989
|
@end
|
|
1915
1990
|
|
|
1991
|
+
|
|
1916
1992
|
@class NSBundle;
|
|
1917
1993
|
|
|
1918
1994
|
SWIFT_CLASS("_TtC5GSSDK14GSSDKResources")
|