@thegrizzlylabs/react-native-genius-scan 5.0.2 → 5.0.3
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/android/build.gradle +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/PrivacyInfo.xcprivacy +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKBackgroundKind.h +14 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDefaultLogger.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentComposition.h +16 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentDetector.h +3 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEdgeCleaning.h +14 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterColorPalette.h +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterStyle.h +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterType.h +11 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLog.h +2 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLogger.h +4 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +28 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +207 -11
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +22 -20
- 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 +5512 -1646
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +131 -7
- 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 +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivacyInfo.xcprivacy +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +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/PrivacyInfo.xcprivacy +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK_GSSDKObjC.bundle/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKBackgroundKind.h +14 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDefaultLogger.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentComposition.h +16 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentDetector.h +3 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEdgeCleaning.h +14 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterColorPalette.h +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterStyle.h +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterType.h +11 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLog.h +2 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLogger.h +4 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +28 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +414 -22
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +22 -20
- 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 +5512 -1646
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +131 -7
- 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 +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +5512 -1646
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +131 -7
- 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 +131 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivacyInfo.xcprivacy +19 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/package.json +1 -1
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h
CHANGED
|
@@ -277,6 +277,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
277
277
|
#if __has_warning("-Watimport-in-framework-header")
|
|
278
278
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
279
279
|
#endif
|
|
280
|
+
@import CoreFoundation;
|
|
280
281
|
@import Dispatch;
|
|
281
282
|
@import Foundation;
|
|
282
283
|
@import ObjectiveC;
|
|
@@ -425,6 +426,183 @@ SWIFT_PROTOCOL("_TtP5GSSDK25GSKDocumentImageProcessor_")
|
|
|
425
426
|
@end
|
|
426
427
|
|
|
427
428
|
|
|
429
|
+
/// A configuration to specify the background cleaning to apply with GSKScanProcessor.
|
|
430
|
+
SWIFT_CLASS("_TtC5GSSDK40GSKFilterBackgroundCleaningConfiguration")
|
|
431
|
+
@interface GSKFilterBackgroundCleaningConfiguration : NSObject
|
|
432
|
+
/// Determines if the edges of the document must be cleaned or not. Cleaning the edges might result in erasing
|
|
433
|
+
/// some information that’s close the edges but yields a much cleaner document.
|
|
434
|
+
@property (nonatomic, readonly) GSKEdgeCleaning edgeCleaning;
|
|
435
|
+
/// Determines if the document’s background is rather light (white) or dark (black).
|
|
436
|
+
@property (nonatomic, readonly) GSKBackgroundKind backgroundKind;
|
|
437
|
+
/// Determines if the document is composed mainly of text, or contains a mix of text and photos.
|
|
438
|
+
@property (nonatomic, readonly) GSKDocumentComposition documentComposition;
|
|
439
|
+
/// Determines the strength of the background cleaning. Value between 0 and 1.
|
|
440
|
+
@property (nonatomic, readonly) CGFloat strength;
|
|
441
|
+
/// \param edgeCleaning If enabled, the document edges will be cleaned up. This helps if the document is torn or folded in
|
|
442
|
+
/// the corners, of if the cropping wasn’t perfectly accurate.
|
|
443
|
+
///
|
|
444
|
+
/// \param backgroundKind If set to dark, the document is considered as having a dark background, and will be processed
|
|
445
|
+
/// consequently.
|
|
446
|
+
///
|
|
447
|
+
/// \param documentComposition If set to “Text and photo”, indicates that document is a composite of text and photos (such
|
|
448
|
+
/// as a magazine page). The filter will be less aggressive to preserve the photos.
|
|
449
|
+
///
|
|
450
|
+
/// \param strength The strength of the filter, between 0 and 1.
|
|
451
|
+
///
|
|
452
|
+
- (nonnull instancetype)initWithEdgeCleaning:(GSKEdgeCleaning)edgeCleaning backgroundKind:(GSKBackgroundKind)backgroundKind documentComposition:(GSKDocumentComposition)documentComposition strength:(CGFloat)strength OBJC_DESIGNATED_INITIALIZER;
|
|
453
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
454
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
455
|
+
@end
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
@interface GSKFilterBackgroundCleaningConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
459
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
460
|
+
@end
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
@interface GSKFilterBackgroundCleaningConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
464
|
+
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
465
|
+
@property (nonatomic, readonly) NSUInteger hash;
|
|
466
|
+
@end
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
/// A configuration to determine the colors of the output of the GSKScanProcessor.
|
|
470
|
+
SWIFT_CLASS("_TtC5GSSDK27GSKFilterColorConfiguration")
|
|
471
|
+
@interface GSKFilterColorConfiguration : NSObject
|
|
472
|
+
/// A configuration that results in a monochrome document.
|
|
473
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterColorConfiguration * _Nonnull monochrome;)
|
|
474
|
+
+ (GSKFilterColorConfiguration * _Nonnull)monochrome SWIFT_WARN_UNUSED_RESULT;
|
|
475
|
+
/// A configuration that results in a grayscale document.
|
|
476
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterColorConfiguration * _Nonnull grayscale;)
|
|
477
|
+
+ (GSKFilterColorConfiguration * _Nonnull)grayscale SWIFT_WARN_UNUSED_RESULT;
|
|
478
|
+
/// A configuration that results in a color document.
|
|
479
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterColorConfiguration * _Nonnull color;)
|
|
480
|
+
+ (GSKFilterColorConfiguration * _Nonnull)color SWIFT_WARN_UNUSED_RESULT;
|
|
481
|
+
/// The palette of colors
|
|
482
|
+
@property (nonatomic, readonly) GSKFilterColorPalette palette;
|
|
483
|
+
- (nonnull instancetype)initWithPalette:(GSKFilterColorPalette)palette OBJC_DESIGNATED_INITIALIZER;
|
|
484
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
485
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
486
|
+
@end
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
@interface GSKFilterColorConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
490
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
491
|
+
@end
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
@interface GSKFilterColorConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
495
|
+
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
496
|
+
@property (nonatomic, readonly) NSUInteger hash;
|
|
497
|
+
@end
|
|
498
|
+
|
|
499
|
+
@class GSKFilterLightingCorrectionConfiguration;
|
|
500
|
+
|
|
501
|
+
/// The configuration to use when applying a document enhancement filter.
|
|
502
|
+
SWIFT_CLASS("_TtC5GSSDK22GSKFilterConfiguration")
|
|
503
|
+
@interface GSKFilterConfiguration : NSObject
|
|
504
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull noOp;)
|
|
505
|
+
+ (GSKFilterConfiguration * _Nonnull)noOp SWIFT_WARN_UNUSED_RESULT;
|
|
506
|
+
/// A photo filter configuration (no background cleaning)
|
|
507
|
+
/// \param lightingCorrectionConfiguration an optional lighting correction configuration. If nil, no correction is applied.
|
|
508
|
+
///
|
|
509
|
+
/// \param colorConfiguration an optional color configuration. If nil, the color configuration is used.
|
|
510
|
+
///
|
|
511
|
+
+ (GSKFilterConfiguration * _Nonnull)photoWithLightingCorrectionConfiguration:(GSKFilterLightingCorrectionConfiguration * _Nullable)lightingCorrectionConfiguration colorConfiguration:(GSKFilterColorConfiguration * _Nullable)colorConfiguration SWIFT_WARN_UNUSED_RESULT;
|
|
512
|
+
/// The lighting configuration
|
|
513
|
+
/// Determines the parameters to tune the image levels, contrast.
|
|
514
|
+
@property (nonatomic, readonly, strong) GSKFilterLightingCorrectionConfiguration * _Nullable lightingCorrectionConfiguration;
|
|
515
|
+
/// The background cleaning configuration
|
|
516
|
+
/// Determines the cleaning up of the document’s background.
|
|
517
|
+
@property (nonatomic, readonly, strong) GSKFilterBackgroundCleaningConfiguration * _Nullable backgroundCleaningConfiguration;
|
|
518
|
+
/// The color configuration
|
|
519
|
+
/// Determines the filter’s output colors.
|
|
520
|
+
@property (nonatomic, readonly, strong) GSKFilterColorConfiguration * _Nullable colorConfiguration;
|
|
521
|
+
+ (GSKFilterConfiguration * _Nonnull)configurationWithLightingCorrectionConfiguration:(GSKFilterLightingCorrectionConfiguration * _Nullable)lightingCorrectionConfiguration backgroundCleaningConfiguration:(GSKFilterBackgroundCleaningConfiguration * _Nullable)backgroundCleaningConfiguration colorConfiguration:(GSKFilterColorConfiguration * _Nullable)colorConfiguration SWIFT_WARN_UNUSED_RESULT;
|
|
522
|
+
/// A filter configuration.
|
|
523
|
+
/// \param lightingCorrectionConfiguration an optional lighting correction configuration. If nil, no correction is applied.
|
|
524
|
+
///
|
|
525
|
+
/// \param backgroundCleaningConfiguration an optional background cleaning configuration. If nil, no background
|
|
526
|
+
/// cleaning is applied.
|
|
527
|
+
///
|
|
528
|
+
/// \param colorConfiguration an optional color configuration. If nil, the color configuration is used.
|
|
529
|
+
///
|
|
530
|
+
- (nonnull instancetype)initWithLightingCorrectionConfiguration:(GSKFilterLightingCorrectionConfiguration * _Nullable)lightingCorrectionConfiguration backgroundCleaningConfiguration:(GSKFilterBackgroundCleaningConfiguration * _Nullable)backgroundCleaningConfiguration colorConfiguration:(GSKFilterColorConfiguration * _Nullable)colorConfiguration OBJC_DESIGNATED_INITIALIZER;
|
|
531
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
532
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
533
|
+
@end
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
@interface GSKFilterConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
537
|
+
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
538
|
+
@property (nonatomic, readonly) NSUInteger hash;
|
|
539
|
+
@end
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
@interface GSKFilterConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
543
|
+
/// A soft document filter resulting in a grayscale document.
|
|
544
|
+
/// This filter is ideal for documents with light print such as carbon copy,
|
|
545
|
+
/// documents with pale text that you need to preserve, or documents where the
|
|
546
|
+
/// text has little contrast with the background.
|
|
547
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull softGrayscale;)
|
|
548
|
+
+ (GSKFilterConfiguration * _Nonnull)softGrayscale SWIFT_WARN_UNUSED_RESULT;
|
|
549
|
+
/// A soft document filter resulting in a color document.
|
|
550
|
+
/// This filter is ideal for documents that mix text and images and it also preserves
|
|
551
|
+
/// text with low contrast.
|
|
552
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull softColor;)
|
|
553
|
+
+ (GSKFilterConfiguration * _Nonnull)softColor SWIFT_WARN_UNUSED_RESULT;
|
|
554
|
+
/// A strong document filter resulting in a monochrome document.
|
|
555
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull strongMonochrome;)
|
|
556
|
+
+ (GSKFilterConfiguration * _Nonnull)strongMonochrome SWIFT_WARN_UNUSED_RESULT;
|
|
557
|
+
/// A strong document filter resulting in a grayscale document.
|
|
558
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull strongGrayscale;)
|
|
559
|
+
+ (GSKFilterConfiguration * _Nonnull)strongGrayscale SWIFT_WARN_UNUSED_RESULT;
|
|
560
|
+
/// A strong document filter resulting in a color document.
|
|
561
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull strongColor;)
|
|
562
|
+
+ (GSKFilterConfiguration * _Nonnull)strongColor SWIFT_WARN_UNUSED_RESULT;
|
|
563
|
+
/// A filter specially designed for photos.
|
|
564
|
+
/// Unlike document filters, this filter will not attempt any background cleaning but will
|
|
565
|
+
/// slightly improve the lighting of the image.
|
|
566
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull photo;)
|
|
567
|
+
+ (GSKFilterConfiguration * _Nonnull)photo SWIFT_WARN_UNUSED_RESULT;
|
|
568
|
+
/// A filter specially designed to treat documents with a dark background, in particular white text
|
|
569
|
+
/// over a black background.
|
|
570
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull darkBackground;)
|
|
571
|
+
+ (GSKFilterConfiguration * _Nonnull)darkBackground SWIFT_WARN_UNUSED_RESULT;
|
|
572
|
+
@end
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
/// A configuration to adjust the lighting of a document with GSKScanProcessor.
|
|
576
|
+
SWIFT_CLASS("_TtC5GSSDK40GSKFilterLightingCorrectionConfiguration")
|
|
577
|
+
@interface GSKFilterLightingCorrectionConfiguration : NSObject
|
|
578
|
+
/// A configuration that doesn’t adjust the lighting of a document.
|
|
579
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterLightingCorrectionConfiguration * _Nonnull noOp;)
|
|
580
|
+
+ (GSKFilterLightingCorrectionConfiguration * _Nonnull)noOp SWIFT_WARN_UNUSED_RESULT;
|
|
581
|
+
/// A configuration to adjust the lighting of document containing text.
|
|
582
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterLightingCorrectionConfiguration * _Nonnull textDocument;)
|
|
583
|
+
+ (GSKFilterLightingCorrectionConfiguration * _Nonnull)textDocument SWIFT_WARN_UNUSED_RESULT;
|
|
584
|
+
/// A configuration to adjust the lighting of a document looking like a photo.
|
|
585
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterLightingCorrectionConfiguration * _Nonnull photos;)
|
|
586
|
+
+ (GSKFilterLightingCorrectionConfiguration * _Nonnull)photos SWIFT_WARN_UNUSED_RESULT;
|
|
587
|
+
@property (nonatomic, readonly) CGFloat minThreshold;
|
|
588
|
+
@property (nonatomic, readonly) CGFloat maxThreshold;
|
|
589
|
+
- (nonnull instancetype)initWithMinThreshold:(CGFloat)minThreshold maxThreshold:(CGFloat)maxThreshold OBJC_DESIGNATED_INITIALIZER;
|
|
590
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
591
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
592
|
+
@end
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
@interface GSKFilterLightingCorrectionConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
596
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
597
|
+
@end
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
@interface GSKFilterLightingCorrectionConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
601
|
+
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
602
|
+
@property (nonatomic, readonly) NSUInteger hash;
|
|
603
|
+
@end
|
|
604
|
+
|
|
605
|
+
|
|
428
606
|
|
|
429
607
|
/// Internal use.
|
|
430
608
|
SWIFT_CLASS("_TtC5GSSDK22GSKLicenseKeyRefresher")
|
|
@@ -678,11 +856,6 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
678
856
|
@end
|
|
679
857
|
|
|
680
858
|
|
|
681
|
-
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
682
|
-
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
683
|
-
@end
|
|
684
|
-
|
|
685
|
-
|
|
686
859
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
687
860
|
/// Create a configuration from a dictionary.
|
|
688
861
|
/// This is particularly useful for interfacing with React Native but shouldn’t
|
|
@@ -692,6 +865,11 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
692
865
|
|
|
693
866
|
|
|
694
867
|
|
|
868
|
+
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
869
|
+
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
870
|
+
@end
|
|
871
|
+
|
|
872
|
+
|
|
695
873
|
/// Enum that defines various errors that can occur during a scan flow.
|
|
696
874
|
typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
|
|
697
875
|
/// User has canceled the scan flow
|
|
@@ -704,12 +882,30 @@ typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
|
|
|
704
882
|
/// The different possible filters for the scanner UI.
|
|
705
883
|
/// All cases match <code>GSKFilterType</code> values except <code>.automatic</code>.
|
|
706
884
|
typedef SWIFT_ENUM(NSInteger, GSKScanFlowFilterType, open) {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
885
|
+
GSKScanFlowFilterNone SWIFT_COMPILE_NAME("none") = 0,
|
|
886
|
+
/// Automatic filter
|
|
887
|
+
GSKScanFlowFilterAutomatic SWIFT_COMPILE_NAME("automatic") = 1,
|
|
888
|
+
/// Automatic filter with a monochrome output
|
|
889
|
+
GSKScanFlowFilterAutomaticDocumentMonochrome SWIFT_COMPILE_NAME("automaticDocumentMonochrome") = 2,
|
|
890
|
+
/// Automatic filter with a grayscale output
|
|
891
|
+
GSKScanFlowFilterAutomaticDocumentGrayscale SWIFT_COMPILE_NAME("automaticDocumentGrayscale") = 3,
|
|
892
|
+
/// Automatic filter with a color output
|
|
893
|
+
GSKScanFlowFilterAutomaticDocumentColor SWIFT_COMPILE_NAME("automaticDocumentColor") = 4,
|
|
894
|
+
/// A soft gray scale filter, ideal for documents containing both text and photos, or for text documents with
|
|
895
|
+
/// a low-contrast between the text and the background.
|
|
896
|
+
GSKScanFlowFilterSoftGrayscale SWIFT_COMPILE_NAME("softGrayscale") = 5,
|
|
897
|
+
/// A soft color filter, ideal for documents containing both text and photos
|
|
898
|
+
GSKScanFlowFilterSoftColor SWIFT_COMPILE_NAME("softColor") = 6,
|
|
899
|
+
/// A strong monochrome filter, ideal for text documents
|
|
900
|
+
GSKScanFlowFilterStrongMonochrome SWIFT_COMPILE_NAME("strongMonochrome") = 7,
|
|
901
|
+
/// A strong grayscale filter, ideal for text documents
|
|
902
|
+
GSKScanFlowFilterStrongGrayscale SWIFT_COMPILE_NAME("strongGrayscale") = 8,
|
|
903
|
+
/// A strong color filter, ideal for text documents with some color
|
|
904
|
+
GSKScanFlowFilterStrongColor SWIFT_COMPILE_NAME("strongColor") = 9,
|
|
905
|
+
/// A filter that ensures best results for documents with a dark background
|
|
906
|
+
GSKScanFlowFilterDarkBackground SWIFT_COMPILE_NAME("darkBackground") = 10,
|
|
907
|
+
/// A filter designed to improve scans of photos.
|
|
908
|
+
GSKScanFlowFilterPhoto SWIFT_COMPILE_NAME("photo") = 11,
|
|
713
909
|
};
|
|
714
910
|
|
|
715
911
|
/// The capture screen flash mode.
|
|
@@ -1331,6 +1527,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1331
1527
|
#if __has_warning("-Watimport-in-framework-header")
|
|
1332
1528
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
1333
1529
|
#endif
|
|
1530
|
+
@import CoreFoundation;
|
|
1334
1531
|
@import Dispatch;
|
|
1335
1532
|
@import Foundation;
|
|
1336
1533
|
@import ObjectiveC;
|
|
@@ -1479,6 +1676,183 @@ SWIFT_PROTOCOL("_TtP5GSSDK25GSKDocumentImageProcessor_")
|
|
|
1479
1676
|
@end
|
|
1480
1677
|
|
|
1481
1678
|
|
|
1679
|
+
/// A configuration to specify the background cleaning to apply with GSKScanProcessor.
|
|
1680
|
+
SWIFT_CLASS("_TtC5GSSDK40GSKFilterBackgroundCleaningConfiguration")
|
|
1681
|
+
@interface GSKFilterBackgroundCleaningConfiguration : NSObject
|
|
1682
|
+
/// Determines if the edges of the document must be cleaned or not. Cleaning the edges might result in erasing
|
|
1683
|
+
/// some information that’s close the edges but yields a much cleaner document.
|
|
1684
|
+
@property (nonatomic, readonly) GSKEdgeCleaning edgeCleaning;
|
|
1685
|
+
/// Determines if the document’s background is rather light (white) or dark (black).
|
|
1686
|
+
@property (nonatomic, readonly) GSKBackgroundKind backgroundKind;
|
|
1687
|
+
/// Determines if the document is composed mainly of text, or contains a mix of text and photos.
|
|
1688
|
+
@property (nonatomic, readonly) GSKDocumentComposition documentComposition;
|
|
1689
|
+
/// Determines the strength of the background cleaning. Value between 0 and 1.
|
|
1690
|
+
@property (nonatomic, readonly) CGFloat strength;
|
|
1691
|
+
/// \param edgeCleaning If enabled, the document edges will be cleaned up. This helps if the document is torn or folded in
|
|
1692
|
+
/// the corners, of if the cropping wasn’t perfectly accurate.
|
|
1693
|
+
///
|
|
1694
|
+
/// \param backgroundKind If set to dark, the document is considered as having a dark background, and will be processed
|
|
1695
|
+
/// consequently.
|
|
1696
|
+
///
|
|
1697
|
+
/// \param documentComposition If set to “Text and photo”, indicates that document is a composite of text and photos (such
|
|
1698
|
+
/// as a magazine page). The filter will be less aggressive to preserve the photos.
|
|
1699
|
+
///
|
|
1700
|
+
/// \param strength The strength of the filter, between 0 and 1.
|
|
1701
|
+
///
|
|
1702
|
+
- (nonnull instancetype)initWithEdgeCleaning:(GSKEdgeCleaning)edgeCleaning backgroundKind:(GSKBackgroundKind)backgroundKind documentComposition:(GSKDocumentComposition)documentComposition strength:(CGFloat)strength OBJC_DESIGNATED_INITIALIZER;
|
|
1703
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1704
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1705
|
+
@end
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
@interface GSKFilterBackgroundCleaningConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1709
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
1710
|
+
@end
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
@interface GSKFilterBackgroundCleaningConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1714
|
+
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
1715
|
+
@property (nonatomic, readonly) NSUInteger hash;
|
|
1716
|
+
@end
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
/// A configuration to determine the colors of the output of the GSKScanProcessor.
|
|
1720
|
+
SWIFT_CLASS("_TtC5GSSDK27GSKFilterColorConfiguration")
|
|
1721
|
+
@interface GSKFilterColorConfiguration : NSObject
|
|
1722
|
+
/// A configuration that results in a monochrome document.
|
|
1723
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterColorConfiguration * _Nonnull monochrome;)
|
|
1724
|
+
+ (GSKFilterColorConfiguration * _Nonnull)monochrome SWIFT_WARN_UNUSED_RESULT;
|
|
1725
|
+
/// A configuration that results in a grayscale document.
|
|
1726
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterColorConfiguration * _Nonnull grayscale;)
|
|
1727
|
+
+ (GSKFilterColorConfiguration * _Nonnull)grayscale SWIFT_WARN_UNUSED_RESULT;
|
|
1728
|
+
/// A configuration that results in a color document.
|
|
1729
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterColorConfiguration * _Nonnull color;)
|
|
1730
|
+
+ (GSKFilterColorConfiguration * _Nonnull)color SWIFT_WARN_UNUSED_RESULT;
|
|
1731
|
+
/// The palette of colors
|
|
1732
|
+
@property (nonatomic, readonly) GSKFilterColorPalette palette;
|
|
1733
|
+
- (nonnull instancetype)initWithPalette:(GSKFilterColorPalette)palette OBJC_DESIGNATED_INITIALIZER;
|
|
1734
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1735
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1736
|
+
@end
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
@interface GSKFilterColorConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1740
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
1741
|
+
@end
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
@interface GSKFilterColorConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1745
|
+
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
1746
|
+
@property (nonatomic, readonly) NSUInteger hash;
|
|
1747
|
+
@end
|
|
1748
|
+
|
|
1749
|
+
@class GSKFilterLightingCorrectionConfiguration;
|
|
1750
|
+
|
|
1751
|
+
/// The configuration to use when applying a document enhancement filter.
|
|
1752
|
+
SWIFT_CLASS("_TtC5GSSDK22GSKFilterConfiguration")
|
|
1753
|
+
@interface GSKFilterConfiguration : NSObject
|
|
1754
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull noOp;)
|
|
1755
|
+
+ (GSKFilterConfiguration * _Nonnull)noOp SWIFT_WARN_UNUSED_RESULT;
|
|
1756
|
+
/// A photo filter configuration (no background cleaning)
|
|
1757
|
+
/// \param lightingCorrectionConfiguration an optional lighting correction configuration. If nil, no correction is applied.
|
|
1758
|
+
///
|
|
1759
|
+
/// \param colorConfiguration an optional color configuration. If nil, the color configuration is used.
|
|
1760
|
+
///
|
|
1761
|
+
+ (GSKFilterConfiguration * _Nonnull)photoWithLightingCorrectionConfiguration:(GSKFilterLightingCorrectionConfiguration * _Nullable)lightingCorrectionConfiguration colorConfiguration:(GSKFilterColorConfiguration * _Nullable)colorConfiguration SWIFT_WARN_UNUSED_RESULT;
|
|
1762
|
+
/// The lighting configuration
|
|
1763
|
+
/// Determines the parameters to tune the image levels, contrast.
|
|
1764
|
+
@property (nonatomic, readonly, strong) GSKFilterLightingCorrectionConfiguration * _Nullable lightingCorrectionConfiguration;
|
|
1765
|
+
/// The background cleaning configuration
|
|
1766
|
+
/// Determines the cleaning up of the document’s background.
|
|
1767
|
+
@property (nonatomic, readonly, strong) GSKFilterBackgroundCleaningConfiguration * _Nullable backgroundCleaningConfiguration;
|
|
1768
|
+
/// The color configuration
|
|
1769
|
+
/// Determines the filter’s output colors.
|
|
1770
|
+
@property (nonatomic, readonly, strong) GSKFilterColorConfiguration * _Nullable colorConfiguration;
|
|
1771
|
+
+ (GSKFilterConfiguration * _Nonnull)configurationWithLightingCorrectionConfiguration:(GSKFilterLightingCorrectionConfiguration * _Nullable)lightingCorrectionConfiguration backgroundCleaningConfiguration:(GSKFilterBackgroundCleaningConfiguration * _Nullable)backgroundCleaningConfiguration colorConfiguration:(GSKFilterColorConfiguration * _Nullable)colorConfiguration SWIFT_WARN_UNUSED_RESULT;
|
|
1772
|
+
/// A filter configuration.
|
|
1773
|
+
/// \param lightingCorrectionConfiguration an optional lighting correction configuration. If nil, no correction is applied.
|
|
1774
|
+
///
|
|
1775
|
+
/// \param backgroundCleaningConfiguration an optional background cleaning configuration. If nil, no background
|
|
1776
|
+
/// cleaning is applied.
|
|
1777
|
+
///
|
|
1778
|
+
/// \param colorConfiguration an optional color configuration. If nil, the color configuration is used.
|
|
1779
|
+
///
|
|
1780
|
+
- (nonnull instancetype)initWithLightingCorrectionConfiguration:(GSKFilterLightingCorrectionConfiguration * _Nullable)lightingCorrectionConfiguration backgroundCleaningConfiguration:(GSKFilterBackgroundCleaningConfiguration * _Nullable)backgroundCleaningConfiguration colorConfiguration:(GSKFilterColorConfiguration * _Nullable)colorConfiguration OBJC_DESIGNATED_INITIALIZER;
|
|
1781
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1782
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1783
|
+
@end
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
@interface GSKFilterConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1787
|
+
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
1788
|
+
@property (nonatomic, readonly) NSUInteger hash;
|
|
1789
|
+
@end
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
@interface GSKFilterConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1793
|
+
/// A soft document filter resulting in a grayscale document.
|
|
1794
|
+
/// This filter is ideal for documents with light print such as carbon copy,
|
|
1795
|
+
/// documents with pale text that you need to preserve, or documents where the
|
|
1796
|
+
/// text has little contrast with the background.
|
|
1797
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull softGrayscale;)
|
|
1798
|
+
+ (GSKFilterConfiguration * _Nonnull)softGrayscale SWIFT_WARN_UNUSED_RESULT;
|
|
1799
|
+
/// A soft document filter resulting in a color document.
|
|
1800
|
+
/// This filter is ideal for documents that mix text and images and it also preserves
|
|
1801
|
+
/// text with low contrast.
|
|
1802
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull softColor;)
|
|
1803
|
+
+ (GSKFilterConfiguration * _Nonnull)softColor SWIFT_WARN_UNUSED_RESULT;
|
|
1804
|
+
/// A strong document filter resulting in a monochrome document.
|
|
1805
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull strongMonochrome;)
|
|
1806
|
+
+ (GSKFilterConfiguration * _Nonnull)strongMonochrome SWIFT_WARN_UNUSED_RESULT;
|
|
1807
|
+
/// A strong document filter resulting in a grayscale document.
|
|
1808
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull strongGrayscale;)
|
|
1809
|
+
+ (GSKFilterConfiguration * _Nonnull)strongGrayscale SWIFT_WARN_UNUSED_RESULT;
|
|
1810
|
+
/// A strong document filter resulting in a color document.
|
|
1811
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull strongColor;)
|
|
1812
|
+
+ (GSKFilterConfiguration * _Nonnull)strongColor SWIFT_WARN_UNUSED_RESULT;
|
|
1813
|
+
/// A filter specially designed for photos.
|
|
1814
|
+
/// Unlike document filters, this filter will not attempt any background cleaning but will
|
|
1815
|
+
/// slightly improve the lighting of the image.
|
|
1816
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull photo;)
|
|
1817
|
+
+ (GSKFilterConfiguration * _Nonnull)photo SWIFT_WARN_UNUSED_RESULT;
|
|
1818
|
+
/// A filter specially designed to treat documents with a dark background, in particular white text
|
|
1819
|
+
/// over a black background.
|
|
1820
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterConfiguration * _Nonnull darkBackground;)
|
|
1821
|
+
+ (GSKFilterConfiguration * _Nonnull)darkBackground SWIFT_WARN_UNUSED_RESULT;
|
|
1822
|
+
@end
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
/// A configuration to adjust the lighting of a document with GSKScanProcessor.
|
|
1826
|
+
SWIFT_CLASS("_TtC5GSSDK40GSKFilterLightingCorrectionConfiguration")
|
|
1827
|
+
@interface GSKFilterLightingCorrectionConfiguration : NSObject
|
|
1828
|
+
/// A configuration that doesn’t adjust the lighting of a document.
|
|
1829
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterLightingCorrectionConfiguration * _Nonnull noOp;)
|
|
1830
|
+
+ (GSKFilterLightingCorrectionConfiguration * _Nonnull)noOp SWIFT_WARN_UNUSED_RESULT;
|
|
1831
|
+
/// A configuration to adjust the lighting of document containing text.
|
|
1832
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterLightingCorrectionConfiguration * _Nonnull textDocument;)
|
|
1833
|
+
+ (GSKFilterLightingCorrectionConfiguration * _Nonnull)textDocument SWIFT_WARN_UNUSED_RESULT;
|
|
1834
|
+
/// A configuration to adjust the lighting of a document looking like a photo.
|
|
1835
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKFilterLightingCorrectionConfiguration * _Nonnull photos;)
|
|
1836
|
+
+ (GSKFilterLightingCorrectionConfiguration * _Nonnull)photos SWIFT_WARN_UNUSED_RESULT;
|
|
1837
|
+
@property (nonatomic, readonly) CGFloat minThreshold;
|
|
1838
|
+
@property (nonatomic, readonly) CGFloat maxThreshold;
|
|
1839
|
+
- (nonnull instancetype)initWithMinThreshold:(CGFloat)minThreshold maxThreshold:(CGFloat)maxThreshold OBJC_DESIGNATED_INITIALIZER;
|
|
1840
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1841
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1842
|
+
@end
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
@interface GSKFilterLightingCorrectionConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1846
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
1847
|
+
@end
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
@interface GSKFilterLightingCorrectionConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1851
|
+
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
|
|
1852
|
+
@property (nonatomic, readonly) NSUInteger hash;
|
|
1853
|
+
@end
|
|
1854
|
+
|
|
1855
|
+
|
|
1482
1856
|
|
|
1483
1857
|
/// Internal use.
|
|
1484
1858
|
SWIFT_CLASS("_TtC5GSSDK22GSKLicenseKeyRefresher")
|
|
@@ -1732,11 +2106,6 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1732
2106
|
@end
|
|
1733
2107
|
|
|
1734
2108
|
|
|
1735
|
-
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1736
|
-
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
1737
|
-
@end
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
2109
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1741
2110
|
/// Create a configuration from a dictionary.
|
|
1742
2111
|
/// This is particularly useful for interfacing with React Native but shouldn’t
|
|
@@ -1746,6 +2115,11 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1746
2115
|
|
|
1747
2116
|
|
|
1748
2117
|
|
|
2118
|
+
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
2119
|
+
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
2120
|
+
@end
|
|
2121
|
+
|
|
2122
|
+
|
|
1749
2123
|
/// Enum that defines various errors that can occur during a scan flow.
|
|
1750
2124
|
typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
|
|
1751
2125
|
/// User has canceled the scan flow
|
|
@@ -1758,12 +2132,30 @@ typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
|
|
|
1758
2132
|
/// The different possible filters for the scanner UI.
|
|
1759
2133
|
/// All cases match <code>GSKFilterType</code> values except <code>.automatic</code>.
|
|
1760
2134
|
typedef SWIFT_ENUM(NSInteger, GSKScanFlowFilterType, open) {
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
2135
|
+
GSKScanFlowFilterNone SWIFT_COMPILE_NAME("none") = 0,
|
|
2136
|
+
/// Automatic filter
|
|
2137
|
+
GSKScanFlowFilterAutomatic SWIFT_COMPILE_NAME("automatic") = 1,
|
|
2138
|
+
/// Automatic filter with a monochrome output
|
|
2139
|
+
GSKScanFlowFilterAutomaticDocumentMonochrome SWIFT_COMPILE_NAME("automaticDocumentMonochrome") = 2,
|
|
2140
|
+
/// Automatic filter with a grayscale output
|
|
2141
|
+
GSKScanFlowFilterAutomaticDocumentGrayscale SWIFT_COMPILE_NAME("automaticDocumentGrayscale") = 3,
|
|
2142
|
+
/// Automatic filter with a color output
|
|
2143
|
+
GSKScanFlowFilterAutomaticDocumentColor SWIFT_COMPILE_NAME("automaticDocumentColor") = 4,
|
|
2144
|
+
/// A soft gray scale filter, ideal for documents containing both text and photos, or for text documents with
|
|
2145
|
+
/// a low-contrast between the text and the background.
|
|
2146
|
+
GSKScanFlowFilterSoftGrayscale SWIFT_COMPILE_NAME("softGrayscale") = 5,
|
|
2147
|
+
/// A soft color filter, ideal for documents containing both text and photos
|
|
2148
|
+
GSKScanFlowFilterSoftColor SWIFT_COMPILE_NAME("softColor") = 6,
|
|
2149
|
+
/// A strong monochrome filter, ideal for text documents
|
|
2150
|
+
GSKScanFlowFilterStrongMonochrome SWIFT_COMPILE_NAME("strongMonochrome") = 7,
|
|
2151
|
+
/// A strong grayscale filter, ideal for text documents
|
|
2152
|
+
GSKScanFlowFilterStrongGrayscale SWIFT_COMPILE_NAME("strongGrayscale") = 8,
|
|
2153
|
+
/// A strong color filter, ideal for text documents with some color
|
|
2154
|
+
GSKScanFlowFilterStrongColor SWIFT_COMPILE_NAME("strongColor") = 9,
|
|
2155
|
+
/// A filter that ensures best results for documents with a dark background
|
|
2156
|
+
GSKScanFlowFilterDarkBackground SWIFT_COMPILE_NAME("darkBackground") = 10,
|
|
2157
|
+
/// A filter designed to improve scans of photos.
|
|
2158
|
+
GSKScanFlowFilterPhoto SWIFT_COMPILE_NAME("photo") = 11,
|
|
1767
2159
|
};
|
|
1768
2160
|
|
|
1769
2161
|
/// The capture screen flash mode.
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h
CHANGED
|
@@ -11,32 +11,34 @@ FOUNDATION_EXPORT double GSSDKVersionNumber;
|
|
|
11
11
|
//! Project version string for GSSDK.
|
|
12
12
|
FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
|
|
13
13
|
|
|
14
|
-
#import <GSSDK/
|
|
15
|
-
#import <GSSDK/GSKDocumentDetector.h>
|
|
16
|
-
#import <GSSDK/GSKScanProcessor.h>
|
|
17
|
-
#import <GSSDK/GSKError.h>
|
|
18
|
-
#import <GSSDK/UIImage+GSKUtils.h>
|
|
19
|
-
#import <GSSDK/GSKLog.h>
|
|
20
|
-
#import <GSSDK/GSKLoggerSeverity.h>
|
|
21
|
-
#import <GSSDK/GSKDefaultLogger.h>
|
|
22
|
-
#import <GSSDK/GSKLicenseKeyChecker.h>
|
|
23
|
-
|
|
24
|
-
// UI
|
|
14
|
+
#import <GSSDK/GSKBackgroundKind.h>
|
|
25
15
|
#import <GSSDK/GSKCameraSession.h>
|
|
26
16
|
#import <GSSDK/GSKCameraViewController.h>
|
|
17
|
+
#import <GSSDK/GSKCore.h>
|
|
18
|
+
#import <GSSDK/GSKDefaultLogger.h>
|
|
19
|
+
#import <GSSDK/GSKDocumentComposition.h>
|
|
20
|
+
#import <GSSDK/GSKDocumentDetector.h>
|
|
27
21
|
#import <GSSDK/GSKEditableFrame.h>
|
|
28
22
|
#import <GSSDK/GSKEditFrameView.h>
|
|
29
23
|
#import <GSSDK/GSKEditFrameViewController.h>
|
|
30
|
-
#import <GSSDK/
|
|
31
|
-
#import <GSSDK/
|
|
24
|
+
#import <GSSDK/GSKError.h>
|
|
25
|
+
#import <GSSDK/GSKFilterColorPalette.h>
|
|
26
|
+
#import <GSSDK/GSKFilterStyle.h>
|
|
27
|
+
#import <GSSDK/GSKLicenseKeyChecker.h>
|
|
28
|
+
#import <GSSDK/GSKLog.h>
|
|
29
|
+
#import <GSSDK/GSKLoggerSeverity.h>
|
|
30
|
+
#import <GSSDK/GSKMagnifierView.h>
|
|
32
31
|
#import <GSSDK/GSKQuadrangle.h>
|
|
33
32
|
#import <GSSDK/GSKScan.h>
|
|
34
|
-
#import <GSSDK/
|
|
35
|
-
#import <GSSDK/
|
|
36
|
-
#import <GSSDK/
|
|
37
|
-
|
|
38
|
-
// ScanFlow
|
|
33
|
+
#import <GSSDK/GSKScanFlowErrorDomain.h>
|
|
34
|
+
#import <GSSDK/GSKScanFlowErrorDomain.h>
|
|
35
|
+
#import <GSSDK/GSKScanFlowOCROutputFormats.h>
|
|
36
|
+
#import <GSSDK/GSKScanFlowOCROutputFormats.h>
|
|
39
37
|
#import <GSSDK/GSKScanFlowPostProcessingActions.h>
|
|
40
38
|
#import <GSSDK/GSKScanFlowStructuredData.h>
|
|
41
|
-
#import <GSSDK/
|
|
42
|
-
#import <GSSDK/
|
|
39
|
+
#import <GSSDK/GSKScanProcessor.h>
|
|
40
|
+
#import <GSSDK/GSKShutterView.h>
|
|
41
|
+
#import <GSSDK/GSKTriggerDecider.h>
|
|
42
|
+
#import <GSSDK/GSKView.h>
|
|
43
|
+
#import <GSSDK/MBProgressHUD.h>
|
|
44
|
+
#import <GSSDK/UIImage+GSKUtils.h>
|