@thegrizzlylabs/cordova-plugin-genius-scan 5.4.1 → 5.6.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 +4 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLogger.h +1 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +3 -1
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +2 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +23 -4
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +4544 -2343
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +76 -4
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +76 -4
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ocr_languages.csv +2 -1
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Resources/DWARF/GSSDK +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/GSSDK.yml +4180 -4031
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLogger.h +1 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +3 -1
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +2 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +46 -8
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +4544 -2343
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +76 -4
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +76 -4
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +4544 -2343
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +76 -4
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +76 -4
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ocr_languages.csv +2 -1
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/DWARF/GSSDK +0 -0
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/GSSDK.yml +4177 -4035
- package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/GSSDK.yml +4117 -3973
package/README.md
CHANGED
|
@@ -120,7 +120,8 @@ The method `scanWithConfiguration` takes a `configuration` parameter which can t
|
|
|
120
120
|
- `pdfFontFileUrl`: Custom font file used during the PDF generation to embed an invisible text layer. If null, a default font is used, which only supports Latin languages.
|
|
121
121
|
- `jpegQuality`: JPEG quality used to compress captured images. Between 0 and 100, 100 being the best quality. Default is 60.
|
|
122
122
|
- `postProcessingActions`: an array with the desired actions to display during the post processing screen (defaults to all actions). Possible actions are `rotate`, `editFilter` and `correctDistortion`.
|
|
123
|
-
- `defaultCurvatureCorrection`: `enabled` or `disabled` whether a curvature correction should be applied by default
|
|
123
|
+
- `defaultCurvatureCorrection`: `enabled` or `disabled` whether a curvature correction should be applied by default. Disabled by default.
|
|
124
|
+
- `defaultScanOrientation`: `automatic` to rotate scan automatically after capture or `original` to keep original scan orientation (defaults to `automatic`).
|
|
124
125
|
- `photoLibraryButtonHidden`: boolean specifying whether the button allowing the user to pick an image on the Camera screen should be hidden (default to false).
|
|
125
126
|
- `flashButtonHidden`: boolean (default to false)
|
|
126
127
|
- `defaultFlashMode`: `auto`, `on`, `off` (default to `off`)
|
|
@@ -131,7 +132,8 @@ The method `scanWithConfiguration` takes a `configuration` parameter which can t
|
|
|
131
132
|
- `ocrConfiguration`: text recognition options. Text recognition will run on a background thread for every captured image. No text recognition will be applied if this parameter is not present.
|
|
132
133
|
- `languages`: list of BCP 47 language tags (eg `["en-US"]`) for which to run text recognition. Note that text recognition will take longer if multiple languages are specified.
|
|
133
134
|
- `outputFormats`: an array with the formats in which the OCR result is made available in the ScanFlow result (defaults to all formats). Possible formats are `rawText`, `hOCR` and `textLayerInPDF`.
|
|
134
|
-
- `structuredData`: an array of the structured data you want to extract. E.g.: `['receipt', 'businessCard']`. Possible values are `
|
|
135
|
+
- `structuredData`: an array of the structured data you want to extract. E.g.: `['receipt', 'businessCard']`. Possible values are `receipt`, `readableCode`, `bankDetails` (iOS only), `businessCard` (iOS only).
|
|
136
|
+
- `structuredDataReadableCodeTypes`: an array of the readable code types to extract, e.g. `['qr', 'code39']`. Possible values are `aztec`, `code39`, `code93`, `code128`, `dataMatrix`, `ean8`, `ean13`, `itf`, `pdf417`, `qr`, `upca` (Android only), `upce`, `codabar` (iOS 15+ only), `gs1DataBar` (iOS 15+ only), `microPDF417` (iOS 15+ only), `microQR` (iOS 15+ only), `msiPlessey` (iOS 15+ only).
|
|
135
137
|
|
|
136
138
|
It returns a promise with `result` object containing:
|
|
137
139
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/cordova-plugin-genius-scan",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"description": "Cordova Plugin for Genius Scan SDK",
|
|
5
5
|
"author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
|
|
6
6
|
"homepage": "https://geniusscansdk.com/",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="5.
|
|
2
|
+
<plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="5.6.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
3
|
<name>Genius Scan</name>
|
|
4
4
|
<js-module name="GeniusScan" src="www/GeniusScan.js">
|
|
5
5
|
<clobbers target="cordova.plugins.GeniusScan" />
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<config-file parent="/manifest/application" target="AndroidManifest.xml" />
|
|
14
14
|
<source-file src="src/android/GeniusScan.java" target-dir="src/com/geniusscansdk/cordova" />
|
|
15
15
|
<framework custom="true" src="src/android/build.gradle" type="gradleReference" />
|
|
16
|
-
<framework src="com.geniusscansdk:gssdk:5.
|
|
16
|
+
<framework src="com.geniusscansdk:gssdk:5.6.0"/>
|
|
17
17
|
</platform>
|
|
18
18
|
|
|
19
19
|
<platform name="ios">
|
|
@@ -10,15 +10,18 @@
|
|
|
10
10
|
<key>DebugSymbolsPath</key>
|
|
11
11
|
<string>dSYMs</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
13
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>GSSDK.framework</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
17
17
|
<array>
|
|
18
18
|
<string>arm64</string>
|
|
19
|
+
<string>x86_64</string>
|
|
19
20
|
</array>
|
|
20
21
|
<key>SupportedPlatform</key>
|
|
21
22
|
<string>ios</string>
|
|
23
|
+
<key>SupportedPlatformVariant</key>
|
|
24
|
+
<string>simulator</string>
|
|
22
25
|
</dict>
|
|
23
26
|
<dict>
|
|
24
27
|
<key>BinaryPath</key>
|
|
@@ -26,18 +29,15 @@
|
|
|
26
29
|
<key>DebugSymbolsPath</key>
|
|
27
30
|
<string>dSYMs</string>
|
|
28
31
|
<key>LibraryIdentifier</key>
|
|
29
|
-
<string>ios-
|
|
32
|
+
<string>ios-arm64</string>
|
|
30
33
|
<key>LibraryPath</key>
|
|
31
34
|
<string>GSSDK.framework</string>
|
|
32
35
|
<key>SupportedArchitectures</key>
|
|
33
36
|
<array>
|
|
34
37
|
<string>arm64</string>
|
|
35
|
-
<string>x86_64</string>
|
|
36
38
|
</array>
|
|
37
39
|
<key>SupportedPlatform</key>
|
|
38
40
|
<string>ios</string>
|
|
39
|
-
<key>SupportedPlatformVariant</key>
|
|
40
|
-
<string>simulator</string>
|
|
41
41
|
</dict>
|
|
42
42
|
</array>
|
|
43
43
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -11,7 +11,9 @@ typedef NS_OPTIONS(NSUInteger, GSKScanFlowStructuredData) {
|
|
|
11
11
|
/// To scan business card information
|
|
12
12
|
GSKScanFlowStructuredDataBusinessCard = 1 << 1,
|
|
13
13
|
/// To scan receipt/invoice information
|
|
14
|
-
GSKScanFlowStructuredDataReceipt = 1 << 2
|
|
14
|
+
GSKScanFlowStructuredDataReceipt = 1 << 2,
|
|
15
|
+
/// To scan barcodes and QR codes. The SDK can detect multiple readable codes on a single page.
|
|
16
|
+
GSKScanFlowStructuredDataReadableCode = 1 << 3,
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
#endif
|
package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h
CHANGED
|
@@ -34,6 +34,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
34
34
|
|
|
35
35
|
With the document processor, you can correct the distortion in your documents, as well as improve their legibility.
|
|
36
36
|
If you are only interested in the detecting a document in an image, please refer to GSKDocumentDetector.
|
|
37
|
+
|
|
38
|
+
Warning: `GSKScanProcessor` is not thread-safe; you shouldn't reuse the same instance accross threads.
|
|
37
39
|
*/
|
|
38
40
|
@interface GSKScanProcessor : NSObject
|
|
39
41
|
|
|
@@ -383,6 +383,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval minDu
|
|
|
383
383
|
@property (nonatomic, readonly) BOOL supportsFlash;
|
|
384
384
|
/// Public to be accessible from Objective-C, but should be private otherwise.
|
|
385
385
|
@property (nonatomic, readonly, strong) dispatch_queue_t _Nullable captureSessionQueue;
|
|
386
|
+
@property (nonatomic, readonly, strong) dispatch_queue_t _Nonnull takePhotoQueue;
|
|
386
387
|
- (nonnull instancetype)initWithConfiguration:(GSKCameraSessionConfiguration * _Nonnull)configuration;
|
|
387
388
|
- (void)pauseSession;
|
|
388
389
|
- (void)resumeSession;
|
|
@@ -399,6 +400,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval minDu
|
|
|
399
400
|
/// Otherwise, if you want to let the user manually trigger the photo, you can use this method.
|
|
400
401
|
/// This method can be called even when activeDetectionMode is higlightAndTrigger and will force taking the
|
|
401
402
|
/// photo.
|
|
403
|
+
/// This method is thread-safe.
|
|
402
404
|
/// IMPORTANT: Taking the photo will pause the session. You have to resume the session will <code>resumeSession</code> once
|
|
403
405
|
/// you are done processing the result.
|
|
404
406
|
- (void)takePhoto;
|
|
@@ -469,6 +471,7 @@ typedef SWIFT_ENUM(NSInteger, GSKCameraSessionFlashStatus, open) {
|
|
|
469
471
|
SWIFT_CLASS("_TtC5GSSDK23GSKCameraViewController")
|
|
470
472
|
@interface GSKCameraViewController : UIViewController
|
|
471
473
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE;
|
|
474
|
+
- (nonnull instancetype)initWithCameraSession:(GSKCameraSession * _Nonnull)cameraSession OBJC_DESIGNATED_INITIALIZER;
|
|
472
475
|
@property (nonatomic, readonly) BOOL prefersStatusBarHidden;
|
|
473
476
|
- (void)loadView;
|
|
474
477
|
- (void)viewDidLoad;
|
|
@@ -485,12 +488,12 @@ SWIFT_CLASS("_TtC5GSSDK23GSKCameraViewController")
|
|
|
485
488
|
@end
|
|
486
489
|
|
|
487
490
|
|
|
488
|
-
|
|
489
491
|
@interface GSKCameraViewController (SWIFT_EXTENSION(GSSDK))
|
|
490
492
|
/// Snap the photo
|
|
491
493
|
- (void)takePhoto;
|
|
492
494
|
@end
|
|
493
495
|
|
|
496
|
+
|
|
494
497
|
@class GSKScan;
|
|
495
498
|
@class GSKQuadrangle;
|
|
496
499
|
|
|
@@ -909,6 +912,7 @@ SWIFT_CLASS("_TtC5GSSDK10GSKPDFPage")
|
|
|
909
912
|
@property (nonatomic, readonly, copy) NSString * _Nonnull filePath;
|
|
910
913
|
@property (nonatomic, readonly, strong) GSKPDFSize * _Nonnull inchesSize;
|
|
911
914
|
@property (nonatomic, readonly, strong) GSKTextLayout * _Nullable textLayout;
|
|
915
|
+
- (nonnull instancetype)initWithFilePath:(NSString * _Nonnull)filePath inchesSize:(GSKPDFSize * _Nonnull)inchesSize textLayout:(GSKTextLayout * _Nullable)textLayout OBJC_DESIGNATED_INITIALIZER;
|
|
912
916
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
913
917
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
914
918
|
@end
|
|
@@ -923,6 +927,7 @@ SWIFT_CLASS("_TtC5GSSDK10GSKPDFSize")
|
|
|
923
927
|
@interface GSKPDFSize : NSObject
|
|
924
928
|
@property (nonatomic, readonly) double width;
|
|
925
929
|
@property (nonatomic, readonly) double height;
|
|
930
|
+
- (nonnull instancetype)initWithWidth:(double)width height:(double)height OBJC_DESIGNATED_INITIALIZER;
|
|
926
931
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
927
932
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
928
933
|
@end
|
|
@@ -975,6 +980,7 @@ SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
|
|
|
975
980
|
|
|
976
981
|
enum GSKScanFlowSource : NSUInteger;
|
|
977
982
|
@class NSURL;
|
|
983
|
+
enum GSKScanOrientation : NSInteger;
|
|
978
984
|
enum GSKScanFlowFilterType : NSInteger;
|
|
979
985
|
enum GSKScanFlowPDFPageSize : NSUInteger;
|
|
980
986
|
enum GSKScanFlowFlashMode : NSUInteger;
|
|
@@ -999,6 +1005,9 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
999
1005
|
/// will only scan a single page. The output document will always contain
|
|
1000
1006
|
/// a single page. Defaults to <code>true</code>.
|
|
1001
1007
|
@property (nonatomic) BOOL multiPage;
|
|
1008
|
+
/// What orientation that a scan should be rotated to after it’s been captured.
|
|
1009
|
+
/// Defaults to <code>automatic</code>. See <code>GSKScanOrientation</code> for more information.
|
|
1010
|
+
@property (nonatomic) enum GSKScanOrientation defaultScanOrientation;
|
|
1002
1011
|
/// Any specific kind of post-processing to use. Defaults to <code>.automatic</code>.
|
|
1003
1012
|
@property (nonatomic) enum GSKScanFlowFilterType defaultFilter;
|
|
1004
1013
|
/// Whether to skip showing the post-processing screen. We only recommend
|
|
@@ -1050,7 +1059,6 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1050
1059
|
@end
|
|
1051
1060
|
|
|
1052
1061
|
|
|
1053
|
-
|
|
1054
1062
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1055
1063
|
/// Create a configuration from a dictionary.
|
|
1056
1064
|
/// This is particularly useful for interfacing with React Native but shouldn’t
|
|
@@ -1059,6 +1067,7 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1059
1067
|
@end
|
|
1060
1068
|
|
|
1061
1069
|
|
|
1070
|
+
|
|
1062
1071
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1063
1072
|
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
1064
1073
|
@end
|
|
@@ -1223,15 +1232,25 @@ SWIFT_CLASS("_TtC5GSSDK31GSKScanFlowStructuredDataResult")
|
|
|
1223
1232
|
/// Present if bank details extraction was requested, <code>nil</code> otherwise.
|
|
1224
1233
|
@property (nonatomic, strong) GSKStructuredDataBankDetails * _Nullable bankDetails;
|
|
1225
1234
|
/// Present if business card contact extraction was requested and a contact was
|
|
1226
|
-
///
|
|
1235
|
+
/// successfully extracted, <code>nil</code> otherwise.
|
|
1227
1236
|
@property (nonatomic, strong) GSKStructuredDataContact * _Nullable businessCardContact;
|
|
1228
1237
|
/// Present if receipt extraction was requested and a receipt/invoice was
|
|
1229
|
-
///
|
|
1238
|
+
/// successfully extracted, <code>nil</code> otherwise.
|
|
1230
1239
|
@property (nonatomic, strong) GSKStructuredDataReceipt * _Nullable receipt;
|
|
1231
1240
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1232
1241
|
@end
|
|
1233
1242
|
|
|
1234
1243
|
|
|
1244
|
+
/// Enum that describes how a document should be oriented/rotated
|
|
1245
|
+
/// after it’s been captured.
|
|
1246
|
+
typedef SWIFT_ENUM(NSInteger, GSKScanOrientation, open) {
|
|
1247
|
+
/// The document’s original orientation should be used. No rotation
|
|
1248
|
+
/// should be applied.
|
|
1249
|
+
GSKScanOrientationOriginal = 0,
|
|
1250
|
+
/// The document should be automatically rotated to its ideal orientation.
|
|
1251
|
+
GSKScanOrientationAutomatic = 1,
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1235
1254
|
|
|
1236
1255
|
/// Address data extracted from a business card document through OCR.
|
|
1237
1256
|
SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataAddress")
|
|
Binary file
|