@thegrizzlylabs/react-native-genius-scan 5.0.0-beta7 → 5.0.0-beta9
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/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +0 -7
- package/index.js +0 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/backbone.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/head_classif.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCore.h +0 -19
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLicenseKeyChecker.h +24 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +64 -27
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -0
- 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 +2725 -2367
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +57 -36
- 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 -36
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/backbone.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/head_classif.tflite +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/GSSDK_GSSDKObjC.bundle/backbone.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK_GSSDKObjC.bundle/head_classif.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCore.h +0 -19
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLicenseKeyChecker.h +24 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +128 -54
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -0
- 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 +2725 -2367
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +57 -36
- 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 -36
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2725 -2367
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +57 -36
- 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 -36
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/backbone.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/head_classif.tflite +0 -0
- package/ios/RNGeniusScan.m +0 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,16 @@ $ react-native link @thegrizzlylabs/react-native-genius-scan
|
|
|
42
42
|
|
|
43
43
|
### Additional steps on Android
|
|
44
44
|
|
|
45
|
-
-
|
|
45
|
+
- Open the `android/build.gradle` file, change `minSdkVersion` to `21` and add the following repository:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
allprojects {
|
|
49
|
+
repositories {
|
|
50
|
+
...
|
|
51
|
+
maven { url 'https://s3.amazonaws.com/tgl.maven' }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
46
55
|
|
|
47
56
|
### Additional steps for iOS
|
|
48
57
|
|
|
@@ -52,7 +61,7 @@ NSCameraUsageDescription - "We use the camera for <provide a good reason why you
|
|
|
52
61
|
```
|
|
53
62
|
- In your `Podfile`, add the following line:
|
|
54
63
|
```
|
|
55
|
-
platform :ios, '
|
|
64
|
+
platform :ios, '13.0'
|
|
56
65
|
```
|
|
57
66
|
|
|
58
67
|
Run `pod install` from the ios folder
|
package/android/build.gradle
CHANGED
|
@@ -78,11 +78,4 @@ public class RNGeniusScanModule extends ReactContextBaseJavaModule {
|
|
|
78
78
|
PluginBridge.setLicenseKey(this.reactContext, licenseKey, autoRefresh);
|
|
79
79
|
promise.resolve(null);
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
@SuppressWarnings("unused")
|
|
83
|
-
@ReactMethod
|
|
84
|
-
public void setLicenceKey(String licenseKey, Promise promise) {
|
|
85
|
-
PromiseResult promiseResult = PluginBridge.setLicenseKey(this.reactContext, licenseKey);
|
|
86
|
-
resolvePromiseWithPromiseResult(promise, promiseResult);
|
|
87
|
-
}
|
|
88
81
|
}
|
package/index.js
CHANGED
|
@@ -7,12 +7,5 @@ const { RNGeniusScan } = NativeModules;
|
|
|
7
7
|
export default {
|
|
8
8
|
scanWithConfiguration: (scanOptions = {}) => RNGeniusScan.scanWithConfiguration(scanOptions),
|
|
9
9
|
generateDocument: RNGeniusScan.generateDocument,
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated
|
|
12
|
-
*/
|
|
13
|
-
setLicenceKey: (key) => {
|
|
14
|
-
console.warn("setLicenceKey is deprecated. Please use setLicenseKey instead.")
|
|
15
|
-
RNGeniusScan.setLicenceKey(key)
|
|
16
|
-
},
|
|
17
10
|
setLicenseKey: RNGeniusScan.setLicenseKey
|
|
18
11
|
};
|
|
Binary file
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/backbone.tflite
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -24,25 +24,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
24
24
|
*/
|
|
25
25
|
@interface GSK : NSObject
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
Must be called first with a valid license key to enable the SDK.
|
|
29
|
-
|
|
30
|
-
This method returns an error if the SDK isn't initialized properly. In addition, all other SDK methods that return errors will report an error if there
|
|
31
|
-
is a problem with the license key, and you must handle them to ensure you provide a good "degraded" experience.
|
|
32
|
-
For instance, you can prompt the user to update the application to use the scanning feature in case they use a version of the application with an expired license key.
|
|
33
|
-
|
|
34
|
-
This method is deprecated in favor of `setLicenseKey:autoRefresh:`.
|
|
35
|
-
|
|
36
|
-
@warning *Important* This method must be called before any use of the SDK methods.
|
|
37
|
-
|
|
38
|
-
@param licenseKey The license key
|
|
39
|
-
@param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information.
|
|
40
|
-
You may specify nil for this parameter if you do not want the error information.
|
|
41
|
-
|
|
42
|
-
@return YES if the SDK was initialized successfully, NO if an error occured.
|
|
43
|
-
*/
|
|
44
|
-
+ (BOOL)initWithLicenseKey:(NSString *)licenseKey error:(NSError * _Nullable *)error __deprecated_msg("-setLicenseKey:autoRefresh: instead.");
|
|
45
|
-
|
|
46
27
|
/// Sets the Genius Scan SDK license key with auto-refresh enabled.
|
|
47
28
|
///
|
|
48
29
|
/// See `setLicenseKey:autoRefresh:`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GSKLicenseKeyChecker.h
|
|
3
|
+
// GSSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Bruno Virlet on 15/03/2024.
|
|
6
|
+
// Copyright © 2024 The Grizzly Labs. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface GSKLicenseKeyChecker : NSObject
|
|
14
|
+
|
|
15
|
+
+ (BOOL)checkLicenseWithError:(NSError *__autoreleasing _Nullable * _Nullable)error;
|
|
16
|
+
|
|
17
|
+
#if DEBUG
|
|
18
|
+
/// Enables simulating an invalid license in the tests.
|
|
19
|
+
@property (nonatomic, class, assign) BOOL simulateInvalid;
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
@end
|
|
23
|
+
|
|
24
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -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
|
|
@@ -744,7 +744,6 @@ SWIFT_CLASS("_TtC5GSSDK17GSKScanFlowResult")
|
|
|
744
744
|
|
|
745
745
|
|
|
746
746
|
@interface GSKScanFlowResult (SWIFT_EXTENSION(GSSDK))
|
|
747
|
-
@property (nonatomic, readonly, copy) NSURL * _Nullable pdfURL SWIFT_DEPRECATED_MSG("Use multiPageDocumentURL instead");
|
|
748
747
|
/// A dictionary representation of the result.
|
|
749
748
|
/// Convenient for interfacing with React Native, probably no reason to
|
|
750
749
|
/// use it with native code.
|
|
@@ -783,29 +782,29 @@ typedef SWIFT_ENUM(NSUInteger, GSKScanFlowSource, open) {
|
|
|
783
782
|
GSKScanFlowSourceLibrary = 2,
|
|
784
783
|
};
|
|
785
784
|
|
|
786
|
-
@class
|
|
787
|
-
@class
|
|
788
|
-
@class
|
|
785
|
+
@class GSKStructuredDataBankDetails;
|
|
786
|
+
@class GSKStructuredDataContact;
|
|
787
|
+
@class GSKStructuredDataReceipt;
|
|
789
788
|
|
|
790
789
|
/// The result of a structured data extraction.
|
|
791
790
|
SWIFT_CLASS("_TtC5GSSDK31GSKScanFlowStructuredDataResult")
|
|
792
791
|
@interface GSKScanFlowStructuredDataResult : NSObject
|
|
793
792
|
/// Present if bank details extraction was requested, <code>nil</code> otherwise.
|
|
794
|
-
@property (nonatomic, strong)
|
|
793
|
+
@property (nonatomic, strong) GSKStructuredDataBankDetails * _Nullable bankDetails;
|
|
795
794
|
/// Present if business card contact extraction was requested and a contact was
|
|
796
795
|
/// succcessfully extracted, <code>nil</code> otherwise.
|
|
797
|
-
@property (nonatomic, strong)
|
|
796
|
+
@property (nonatomic, strong) GSKStructuredDataContact * _Nullable businessCardContact;
|
|
798
797
|
/// Present if receipt extraction was requested and a receipt/invoice was
|
|
799
798
|
/// succcessfully extracted, <code>nil</code> otherwise.
|
|
800
|
-
@property (nonatomic, strong)
|
|
799
|
+
@property (nonatomic, strong) GSKStructuredDataReceipt * _Nullable receipt;
|
|
801
800
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
802
801
|
@end
|
|
803
802
|
|
|
804
803
|
|
|
805
804
|
|
|
806
805
|
/// Address data extracted from a business card document through OCR.
|
|
807
|
-
SWIFT_CLASS("
|
|
808
|
-
@interface
|
|
806
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataAddress")
|
|
807
|
+
@interface GSKStructuredDataAddress : NSObject
|
|
809
808
|
/// The city component of the address.
|
|
810
809
|
@property (nonatomic, readonly, copy) NSString * _Nullable city;
|
|
811
810
|
/// The postal/zip code component of the address.
|
|
@@ -823,30 +822,31 @@ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultAddress")
|
|
|
823
822
|
|
|
824
823
|
|
|
825
824
|
/// The bank details extracted from a document through OCR.
|
|
826
|
-
SWIFT_CLASS("
|
|
827
|
-
@interface
|
|
825
|
+
SWIFT_CLASS("_TtC5GSSDK28GSKStructuredDataBankDetails")
|
|
826
|
+
@interface GSKStructuredDataBankDetails : NSObject
|
|
828
827
|
/// The IBAN if successfully extracted, otherwise is <code>nil</code>.
|
|
829
828
|
@property (nonatomic, copy) NSString * _Nullable iban;
|
|
830
829
|
/// The BIC code if successfully extracted, otherwise is <code>nil</code>.
|
|
831
830
|
@property (nonatomic, copy) NSString * _Nullable bic;
|
|
832
|
-
- (nonnull instancetype)init
|
|
831
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
832
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
833
833
|
@end
|
|
834
834
|
|
|
835
835
|
|
|
836
|
-
@class
|
|
836
|
+
@class GSKStructuredDataPhoneNumber;
|
|
837
837
|
@class CNContact;
|
|
838
838
|
|
|
839
839
|
/// Contact data extracted from a business card document through OCR.
|
|
840
|
-
SWIFT_CLASS("
|
|
841
|
-
@interface
|
|
840
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataContact")
|
|
841
|
+
@interface GSKStructuredDataContact : NSObject
|
|
842
842
|
/// Any name that appears on the business card. Contains the full name, including all components.
|
|
843
843
|
@property (nonatomic, readonly, copy) NSString * _Nullable name;
|
|
844
844
|
/// Any organization that appears on the business card.
|
|
845
845
|
@property (nonatomic, readonly, copy) NSString * _Nullable organization;
|
|
846
846
|
/// Any address that appears on the business card.
|
|
847
|
-
@property (nonatomic, readonly, strong)
|
|
847
|
+
@property (nonatomic, readonly, strong) GSKStructuredDataAddress * _Nullable address;
|
|
848
848
|
/// The phone numbers that appear on the business card.
|
|
849
|
-
@property (nonatomic, readonly, copy) NSArray<
|
|
849
|
+
@property (nonatomic, readonly, copy) NSArray<GSKStructuredDataPhoneNumber *> * _Nonnull phoneNumbers;
|
|
850
850
|
/// The links/URLs that appear on the business card.
|
|
851
851
|
@property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull links;
|
|
852
852
|
/// The email addresses that appear on the business card.
|
|
@@ -859,9 +859,46 @@ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultContact")
|
|
|
859
859
|
|
|
860
860
|
|
|
861
861
|
|
|
862
|
+
/// Class that enables structured data to be extracted from
|
|
863
|
+
/// scanned documents.
|
|
864
|
+
SWIFT_CLASS("_TtC5GSSDK26GSKStructuredDataExtractor")
|
|
865
|
+
@interface GSKStructuredDataExtractor : NSObject
|
|
866
|
+
- (nonnull instancetype)init;
|
|
867
|
+
@end
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
@interface GSKStructuredDataExtractor (SWIFT_EXTENSION(GSSDK))
|
|
872
|
+
/// Extract any bank details that were found in a given document by
|
|
873
|
+
/// passing in the result of performing OCR on that document. Use
|
|
874
|
+
/// <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
875
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
876
|
+
/// then this method will throw an error.
|
|
877
|
+
- (void)bankDetailsFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataBankDetails * _Nullable, NSError * _Nullable))completionHandler;
|
|
878
|
+
/// Extract any business card contact that was found in a given document
|
|
879
|
+
/// by passing in the result of performing OCR on that document. Use
|
|
880
|
+
/// <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
881
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
882
|
+
/// then this method will throw an error.
|
|
883
|
+
- (void)businessCardContactFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataContact * _Nullable, NSError * _Nullable))completionHandler;
|
|
884
|
+
/// Extract any receipt/invoice information that was found in a given
|
|
885
|
+
/// document by passing in the result of performing OCR on that document.
|
|
886
|
+
/// Use <code>GSKOCR</code> to obtain a <code>GSKOCRResult</code> instance. Note that if OCR
|
|
887
|
+
/// was performed for languages that don’t support structured data extraction,
|
|
888
|
+
/// then this method will throw an error.
|
|
889
|
+
- (void)receiptFromOCRResult:(GSKOCRResult * _Nonnull)ocrResult completionHandler:(void (^ _Nonnull)(GSKStructuredDataReceipt * _Nullable, NSError * _Nullable))completionHandler;
|
|
890
|
+
@end
|
|
891
|
+
|
|
892
|
+
/// Enum defining errors that can be thrown by <code>GSKStructuredDataExtractor</code>.
|
|
893
|
+
/// Note that thrown errors will be wrapped in <code>NSError</code> containers.
|
|
894
|
+
typedef SWIFT_ENUM(NSInteger, GSKStructuredDataExtractorError, open) {
|
|
895
|
+
GSKStructuredDataExtractorErrorMissingRequiredOCRMetadata = -1,
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
|
|
862
899
|
/// Phone number data extracted from a business card document through OCR.
|
|
863
|
-
SWIFT_CLASS("
|
|
864
|
-
@interface
|
|
900
|
+
SWIFT_CLASS("_TtC5GSSDK28GSKStructuredDataPhoneNumber")
|
|
901
|
+
@interface GSKStructuredDataPhoneNumber : NSObject
|
|
865
902
|
/// The label of the phone number. For example “Main”, “Office”, etc.
|
|
866
903
|
@property (nonatomic, readonly, copy) NSString * _Nonnull label;
|
|
867
904
|
/// A string representation of the phone number itself.
|
|
@@ -874,8 +911,8 @@ SWIFT_CLASS("_TtC5GSSDK42GSKScanFlowStructuredDataResultPhoneNumber")
|
|
|
874
911
|
@class NSLocale;
|
|
875
912
|
|
|
876
913
|
/// Receipt/invoice details extracted from a document through OCR.
|
|
877
|
-
SWIFT_CLASS("
|
|
878
|
-
@interface
|
|
914
|
+
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataReceipt")
|
|
915
|
+
@interface GSKStructuredDataReceipt : NSObject
|
|
879
916
|
/// The locale that the receipt is in, if successfully extracted, otherwise <code>nil</code>.
|
|
880
917
|
@property (nonatomic, readonly, copy) NSLocale * _Nullable locale;
|
|
881
918
|
/// The merchant that the receipt is from, if successfully extracted, otherwise <code>nil</code>.
|
|
@@ -931,12 +968,12 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKUIBackgro
|
|
|
931
968
|
@end
|
|
932
969
|
|
|
933
970
|
|
|
934
|
-
|
|
935
971
|
@interface GSKView (SWIFT_EXTENSION(GSSDK))
|
|
936
972
|
- (void)startSnapAnimationWithDuration:(NSTimeInterval)duration;
|
|
937
973
|
- (void)endSnapAnimation;
|
|
938
974
|
@end
|
|
939
975
|
|
|
976
|
+
|
|
940
977
|
@class NSBundle;
|
|
941
978
|
|
|
942
979
|
SWIFT_CLASS("_TtC5GSSDK14GSSDKResources")
|
|
Binary file
|