@thegrizzlylabs/react-native-genius-scan 5.0.0-beta1 → 5.0.0-beta2
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/Headers/GSKFilterType.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowErrorDomain.h +7 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowOCROutputFormats.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowPostProcessingActions.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +43 -135
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +5 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/MBProgressHUD.h +411 -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 +7820 -10200
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +45 -117
- 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 +45 -117
- 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/GSKFilterType.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowErrorDomain.h +7 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowOCROutputFormats.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowPostProcessingActions.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +86 -270
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +5 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/MBProgressHUD.h +411 -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 +7820 -10200
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +45 -117
- 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 +45 -117
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +7820 -10200
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +45 -117
- 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 +45 -117
- package/package.json +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlow.h +0 -91
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlow.h +0 -91
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
|
|
3
3
|
// swift-module-flags: -target x86_64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name GSSDK
|
|
4
4
|
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
|
5
|
+
import Combine
|
|
5
6
|
import Contacts
|
|
6
7
|
import ContactsUI
|
|
7
8
|
import CoreGraphics
|
|
@@ -221,11 +222,18 @@ public enum GSSDKStrings {
|
|
|
221
222
|
@objc get
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
|
-
@objc @
|
|
225
|
-
@objc
|
|
226
|
-
|
|
225
|
+
@objc @objcMembers @_Concurrency.MainActor final public class GSKScanFlow : ObjectiveC.NSObject {
|
|
226
|
+
@objc @_Concurrency.MainActor public init(configuration: GSSDK.GSKScanFlowConfiguration)
|
|
227
|
+
#if compiler(>=5.3) && $AsyncAwait
|
|
228
|
+
@objc @_Concurrency.MainActor final public func resultByStarting(fromViewController viewController: UIKit.UIViewController) async throws -> GSSDK.GSKScanFlowResult
|
|
229
|
+
#endif
|
|
227
230
|
@objc deinit
|
|
228
231
|
}
|
|
232
|
+
@objc extension GSSDK.GSKScanFlow {
|
|
233
|
+
@objc @available(swift, obsoleted: 1.0, message: "Use init(configuration:) instead.")
|
|
234
|
+
@_Concurrency.MainActor public static func scanFlowWithConfiguration(_ configuration: GSSDK.GSKScanFlowConfiguration) -> Self
|
|
235
|
+
@objc nonisolated final public func start(from viewController: UIKit.UIViewController, onSuccess completionBlock: @escaping (GSSDK.GSKScanFlowResult) -> Swift.Void, failure errorBlock: @escaping (any Swift.Error) -> Swift.Void)
|
|
236
|
+
}
|
|
229
237
|
@objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowConfiguration : ObjectiveC.NSObject {
|
|
230
238
|
@objc final public var source: GSSDK.GSKScanFlowSource
|
|
231
239
|
@objc final public var sourceImageURL: Foundation.URL?
|
|
@@ -249,6 +257,9 @@ public enum GSSDKStrings {
|
|
|
249
257
|
@objc override dynamic public init()
|
|
250
258
|
@objc deinit
|
|
251
259
|
}
|
|
260
|
+
extension GSSDK.GSKScanFlowConfiguration {
|
|
261
|
+
@objc(validate:) final public func validate() throws
|
|
262
|
+
}
|
|
252
263
|
extension GSSDK.GSKScanFlowConfiguration {
|
|
253
264
|
@nonobjc convenience public init(dictionary: [Swift.String : Any]) throws
|
|
254
265
|
}
|
|
@@ -264,7 +275,7 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
264
275
|
get
|
|
265
276
|
}
|
|
266
277
|
}
|
|
267
|
-
@objc public enum GSKScanFlowFilterType : Swift.Int {
|
|
278
|
+
@objc public enum GSKScanFlowFilterType : Swift.Int, Swift.CaseIterable {
|
|
268
279
|
@objc(GSKScanFlowFilterAutomatic) case automatic
|
|
269
280
|
@objc(GSKScanFlowFilterNone) case none
|
|
270
281
|
@objc(GSKScanFlowFilterBlackAndWhite) case blackAndWhite
|
|
@@ -272,21 +283,39 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
272
283
|
@objc(GSKScanFlowFilterPhoto) case photo
|
|
273
284
|
@objc(GSKScanFlowFilterMonochrome) case monochrome
|
|
274
285
|
public init?(rawValue: Swift.Int)
|
|
286
|
+
public typealias AllCases = [GSSDK.GSKScanFlowFilterType]
|
|
275
287
|
public typealias RawValue = Swift.Int
|
|
288
|
+
public static var allCases: [GSSDK.GSKScanFlowFilterType] {
|
|
289
|
+
get
|
|
290
|
+
}
|
|
276
291
|
public var rawValue: Swift.Int {
|
|
277
292
|
get
|
|
278
293
|
}
|
|
279
294
|
}
|
|
280
|
-
|
|
295
|
+
extension GSSDK.GSKScanFlowFilterType : Swift.CustomStringConvertible {
|
|
296
|
+
public var description: Swift.String {
|
|
297
|
+
get
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
@objc public enum GSKScanFlowFlashMode : Swift.UInt, Swift.CaseIterable {
|
|
281
301
|
case auto
|
|
282
302
|
case on
|
|
283
303
|
case off
|
|
284
304
|
public init?(rawValue: Swift.UInt)
|
|
305
|
+
public typealias AllCases = [GSSDK.GSKScanFlowFlashMode]
|
|
285
306
|
public typealias RawValue = Swift.UInt
|
|
307
|
+
public static var allCases: [GSSDK.GSKScanFlowFlashMode] {
|
|
308
|
+
get
|
|
309
|
+
}
|
|
286
310
|
public var rawValue: Swift.UInt {
|
|
287
311
|
get
|
|
288
312
|
}
|
|
289
313
|
}
|
|
314
|
+
extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
315
|
+
public var description: Swift.String {
|
|
316
|
+
get
|
|
317
|
+
}
|
|
318
|
+
}
|
|
290
319
|
@objc public enum GSKScanFlowMultiPageFormat : Swift.UInt {
|
|
291
320
|
@objc(GSKScanFlowNone) case none
|
|
292
321
|
@objc(GSKScanFlowPDF) case PDF
|
|
@@ -342,34 +371,25 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
342
371
|
@objc public init(originalFilePath: Swift.String, enhancedFilePath: Swift.String)
|
|
343
372
|
@objc deinit
|
|
344
373
|
}
|
|
345
|
-
@objc
|
|
346
|
-
@objc final public let originalFilePath: Swift.String
|
|
347
|
-
@objc final public var enhancedFilePath: Swift.String {
|
|
348
|
-
@objc get
|
|
349
|
-
@objc set
|
|
350
|
-
}
|
|
351
|
-
@objc final public var appliedQuadrangle: GSSDK.GSKQuadrangle
|
|
352
|
-
@objc final public var appliedFilter: GSSDK.GSKFilterType
|
|
353
|
-
@objc final public var appliedRotation: GSSDK.GSKRotation
|
|
354
|
-
@objc final public var ocrResult: GSSDK.GSKOCRResult?
|
|
355
|
-
@objc final public var structuredDataIBAN: Swift.String?
|
|
356
|
-
@objc final public var structuredDataBIC: Swift.String?
|
|
357
|
-
@objc public init(originalFilePath: Swift.String, enhancedFilePath: Swift.String, appliedQuadrangle: GSSDK.GSKQuadrangle, appliedFilter: GSSDK.GSKFilterType, appliedRotation: GSSDK.GSKRotation, logger: any GSSDK.GSKLogger = GSKLog())
|
|
358
|
-
@objc final public func originalImage() -> UIKit.UIImage?
|
|
359
|
-
@objc final public func enhancedImage() -> UIKit.UIImage?
|
|
360
|
-
@objc final public func delete()
|
|
361
|
-
@objc deinit
|
|
362
|
-
}
|
|
363
|
-
@objc public enum GSKScanFlowSource : Swift.UInt {
|
|
374
|
+
@objc public enum GSKScanFlowSource : Swift.UInt, Swift.CaseIterable {
|
|
364
375
|
case camera
|
|
365
376
|
case imageURL
|
|
366
377
|
case library
|
|
367
378
|
public init?(rawValue: Swift.UInt)
|
|
379
|
+
public typealias AllCases = [GSSDK.GSKScanFlowSource]
|
|
368
380
|
public typealias RawValue = Swift.UInt
|
|
381
|
+
public static var allCases: [GSSDK.GSKScanFlowSource] {
|
|
382
|
+
get
|
|
383
|
+
}
|
|
369
384
|
public var rawValue: Swift.UInt {
|
|
370
385
|
get
|
|
371
386
|
}
|
|
372
387
|
}
|
|
388
|
+
extension GSSDK.GSKScanFlowSource : Swift.CustomStringConvertible {
|
|
389
|
+
public var description: Swift.String {
|
|
390
|
+
get
|
|
391
|
+
}
|
|
392
|
+
}
|
|
373
393
|
@objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowStructuredDataResult : ObjectiveC.NSObject {
|
|
374
394
|
@objc final public var bankDetails: GSSDK.GSKScanFlowStructuredDataResultBankDetails?
|
|
375
395
|
@objc override dynamic public init()
|
|
@@ -381,105 +401,12 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
381
401
|
@objc override dynamic public init()
|
|
382
402
|
@objc deinit
|
|
383
403
|
}
|
|
384
|
-
@_hasMissingDesignatedInitializers @objc final public class GSKScanFlowStructuredDataService : GSSDK.GSKSerialQueueService {
|
|
385
|
-
@objc public static let shared: GSSDK.GSKScanFlowStructuredDataService
|
|
386
|
-
@objc final public func process(_ scan: GSSDK.GSKScanFlowScanInternal, configuration: GSSDK.GSKScanFlowConfiguration)
|
|
387
|
-
@objc deinit
|
|
388
|
-
}
|
|
389
|
-
@_inheritsConvenienceInitializers @objc public class GSKSerialQueueService : ObjectiveC.NSObject {
|
|
390
|
-
@objc public func waitForCompletion(_ onDone: @escaping () -> Swift.Void)
|
|
391
|
-
@objc override dynamic public init()
|
|
392
|
-
@objc deinit
|
|
393
|
-
}
|
|
394
404
|
@_inheritsConvenienceInitializers @objc final public class GSKUIBackgroundProcessing : ObjectiveC.NSObject {
|
|
395
405
|
@objc public static let shared: GSSDK.GSKUIBackgroundProcessing
|
|
396
406
|
@objc final public let documentGenerationQueue: Dispatch.DispatchQueue
|
|
397
407
|
@objc override dynamic public init()
|
|
398
408
|
@objc deinit
|
|
399
409
|
}
|
|
400
|
-
@_inheritsConvenienceInitializers @objc final public class GSKUIOCRService : GSSDK.GSKSerialQueueService {
|
|
401
|
-
@objc public static let shared: GSSDK.GSKUIOCRService
|
|
402
|
-
@objc final public var pendingCount: Swift.Int {
|
|
403
|
-
get
|
|
404
|
-
}
|
|
405
|
-
@objc final public func process(_ scan: GSSDK.GSKScanFlowScanInternal, configuration: GSSDK.GSKScanFlowOCRConfiguration)
|
|
406
|
-
@objc override dynamic public init()
|
|
407
|
-
@objc deinit
|
|
408
|
-
}
|
|
409
|
-
@objc public protocol GSKUICameraViewControllerDelegate {
|
|
410
|
-
@objc func cameraViewControllerDidCancel(_ viewController: GSSDK.GSKUICameraViewController)
|
|
411
|
-
@objc func cameraViewControllerDone(_ viewController: GSSDK.GSKUICameraViewController)
|
|
412
|
-
@objc func cameraViewControllerDidSnapPhoto(_ viewController: GSSDK.GSKUICameraViewController)
|
|
413
|
-
@objc func cameraViewController(_ viewController: GSSDK.GSKUICameraViewController, didScan scan: GSSDK.GSKScan, onComplete: @escaping () -> Swift.Void)
|
|
414
|
-
@objc func cameraViewController(_ viewController: GSSDK.GSKUICameraViewController, didFailWithError error: any Swift.Error)
|
|
415
|
-
}
|
|
416
|
-
@objc @objcMembers @_Concurrency.MainActor(unsafe) final public class GSKUICameraViewController : GSSDK.GSKCameraViewController {
|
|
417
|
-
@_Concurrency.MainActor(unsafe) @objc override final public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
|
|
418
|
-
@objc get
|
|
419
|
-
}
|
|
420
|
-
@objc @_Concurrency.MainActor(unsafe) weak final public var delegate: (any GSSDK.GSKUICameraViewControllerDelegate)?
|
|
421
|
-
@objc @_Concurrency.MainActor(unsafe) final public var doneButton: UIKit.UIButton {
|
|
422
|
-
@objc get
|
|
423
|
-
}
|
|
424
|
-
@objc @_Concurrency.MainActor(unsafe) public init(session: GSSDK.GSKCameraSession, configuration: GSSDK.GSKScanFlowConfiguration, logger: any GSSDK.GSKLogger = GSKLog())
|
|
425
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func viewDidLoad()
|
|
426
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func viewWillAppear(_ animated: Swift.Bool)
|
|
427
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionDidSetup(_ cameraSession: GSSDK.GSKCameraSession)
|
|
428
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionWillSnapPhoto(_ cameraSession: GSSDK.GSKCameraSession)
|
|
429
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionDidSnapPhoto(_ cameraSession: GSSDK.GSKCameraSession)
|
|
430
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSession(_ cameraSession: GSSDK.GSKCameraSession, didGenerate scan: GSSDK.GSKScan)
|
|
431
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSession(_ cameraSession: GSSDK.GSKCameraSession, didFailWithError error: any Swift.Error)
|
|
432
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionIsSearchingQuadrangle(_ cameraSession: GSSDK.GSKCameraSession)
|
|
433
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionFailed(toFindQuadrangle cameraSession: GSSDK.GSKCameraSession)
|
|
434
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSession(_ cameraSession: GSSDK.GSKCameraSession, didFind quadrangle: GSSDK.GSKQuadrangle)
|
|
435
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionIsAbout(toChooseQuadrangle cameraSession: GSSDK.GSKCameraSession)
|
|
436
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSession(_ cameraSession: GSSDK.GSKCameraSession, willAutoTriggerWith quadrangle: GSSDK.GSKQuadrangle)
|
|
437
|
-
@objc deinit
|
|
438
|
-
}
|
|
439
|
-
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc @_Concurrency.MainActor(unsafe) public class BVImageContentViewObjCWrapperView : UIKit.UIView {
|
|
440
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
441
|
-
@objc @_Concurrency.MainActor(unsafe) public func setImage(_ image: UIKit.UIImage)
|
|
442
|
-
@objc @_Concurrency.MainActor(unsafe) public func setZoomLimits()
|
|
443
|
-
@objc deinit
|
|
444
|
-
}
|
|
445
|
-
@_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) final public class BVImageContentScrollView : GSSDK.BVContentScrollView<UIKit.UIImageView> {
|
|
446
|
-
@_Concurrency.MainActor(unsafe) public init(frame: CoreFoundation.CGRect)
|
|
447
|
-
@objc deinit
|
|
448
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func observeValue(forKeyPath keyPath: Swift.String?, of object: Any?, change: [Foundation.NSKeyValueChangeKey : Any]?, context: Swift.UnsafeMutableRawPointer?)
|
|
449
|
-
@_Concurrency.MainActor(unsafe) override final public var contentViewContentSize: CoreFoundation.CGSize {
|
|
450
|
-
get
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
@_Concurrency.MainActor(unsafe) open class BVContentScrollView<ContentViewType> : UIKit.UIScrollView, UIKit.UIScrollViewDelegate where ContentViewType : UIKit.UIView {
|
|
454
|
-
@_Concurrency.MainActor(unsafe) final public let contentView: ContentViewType
|
|
455
|
-
@_Concurrency.MainActor(unsafe) public var doubleTapRecognizer: UIKit.UITapGestureRecognizer! {
|
|
456
|
-
get
|
|
457
|
-
}
|
|
458
|
-
@_Concurrency.MainActor(unsafe) public init(frame: CoreFoundation.CGRect, contentView: ContentViewType)
|
|
459
|
-
@_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder)
|
|
460
|
-
@_Concurrency.MainActor(unsafe) public var availableSize: CoreFoundation.CGSize {
|
|
461
|
-
get
|
|
462
|
-
}
|
|
463
|
-
@_Concurrency.MainActor(unsafe) public var padding: CoreFoundation.CGFloat
|
|
464
|
-
@_Concurrency.MainActor(unsafe) open var contentViewContentSize: CoreFoundation.CGSize {
|
|
465
|
-
get
|
|
466
|
-
}
|
|
467
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public var contentInset: UIKit.UIEdgeInsets {
|
|
468
|
-
@objc get
|
|
469
|
-
@objc set
|
|
470
|
-
}
|
|
471
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public var bounds: CoreFoundation.CGRect {
|
|
472
|
-
@objc get
|
|
473
|
-
@objc set
|
|
474
|
-
}
|
|
475
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
476
|
-
@_Concurrency.MainActor(unsafe) public func setZoomLimits()
|
|
477
|
-
@objc @_Concurrency.MainActor(unsafe) open func handleDoubleTap(_ gestureRecognizer: UIKit.UITapGestureRecognizer)
|
|
478
|
-
@_Concurrency.MainActor(unsafe) @objc public func viewForZooming(in scrollView: UIKit.UIScrollView) -> UIKit.UIView?
|
|
479
|
-
@_Concurrency.MainActor(unsafe) @objc public func scrollViewDidEndZooming(_ scrollView: UIKit.UIScrollView, with view: UIKit.UIView?, atScale scale: CoreFoundation.CGFloat)
|
|
480
|
-
@_Concurrency.MainActor(unsafe) @objc open func scrollViewDidZoom(_ scrollView: UIKit.UIScrollView)
|
|
481
|
-
@objc deinit
|
|
482
|
-
}
|
|
483
410
|
public struct GSKScanFlowButton<Label> : SwiftUI.View where Label : SwiftUI.View {
|
|
484
411
|
public var configuration: () -> GSSDK.GSKScanFlowConfiguration
|
|
485
412
|
public var action: (Swift.Result<GSSDK.GSKScanFlowResult, any Swift.Error>) -> Swift.Void
|
|
@@ -493,6 +420,7 @@ public struct GSKScanFlowButton<Label> : SwiftUI.View where Label : SwiftUI.View
|
|
|
493
420
|
extension GSSDK.GSKScanFlowButton where Label == SwiftUI.Text {
|
|
494
421
|
public init(_ label: Swift.String, configuration: @escaping () -> GSSDK.GSKScanFlowConfiguration, action: @escaping (Swift.Result<GSSDK.GSKScanFlowResult, any Swift.Error>) -> Swift.Void)
|
|
495
422
|
}
|
|
423
|
+
extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
496
424
|
extension GSSDK.GSKScanFlowError : Swift.Equatable {}
|
|
497
425
|
extension GSSDK.GSKScanFlowError : Swift.Hashable {}
|
|
498
426
|
extension GSSDK.GSKScanFlowError : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
|
|
3
3
|
// swift-module-flags: -target x86_64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name GSSDK
|
|
4
4
|
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
|
5
|
+
import Combine
|
|
5
6
|
import Contacts
|
|
6
7
|
import ContactsUI
|
|
7
8
|
import CoreGraphics
|
|
@@ -221,11 +222,18 @@ public enum GSSDKStrings {
|
|
|
221
222
|
@objc get
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
|
-
@objc @
|
|
225
|
-
@objc
|
|
226
|
-
|
|
225
|
+
@objc @objcMembers @_Concurrency.MainActor final public class GSKScanFlow : ObjectiveC.NSObject {
|
|
226
|
+
@objc @_Concurrency.MainActor public init(configuration: GSSDK.GSKScanFlowConfiguration)
|
|
227
|
+
#if compiler(>=5.3) && $AsyncAwait
|
|
228
|
+
@objc @_Concurrency.MainActor final public func resultByStarting(fromViewController viewController: UIKit.UIViewController) async throws -> GSSDK.GSKScanFlowResult
|
|
229
|
+
#endif
|
|
227
230
|
@objc deinit
|
|
228
231
|
}
|
|
232
|
+
@objc extension GSSDK.GSKScanFlow {
|
|
233
|
+
@objc @available(swift, obsoleted: 1.0, message: "Use init(configuration:) instead.")
|
|
234
|
+
@_Concurrency.MainActor public static func scanFlowWithConfiguration(_ configuration: GSSDK.GSKScanFlowConfiguration) -> Self
|
|
235
|
+
@objc nonisolated final public func start(from viewController: UIKit.UIViewController, onSuccess completionBlock: @escaping (GSSDK.GSKScanFlowResult) -> Swift.Void, failure errorBlock: @escaping (any Swift.Error) -> Swift.Void)
|
|
236
|
+
}
|
|
229
237
|
@objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowConfiguration : ObjectiveC.NSObject {
|
|
230
238
|
@objc final public var source: GSSDK.GSKScanFlowSource
|
|
231
239
|
@objc final public var sourceImageURL: Foundation.URL?
|
|
@@ -249,6 +257,9 @@ public enum GSSDKStrings {
|
|
|
249
257
|
@objc override dynamic public init()
|
|
250
258
|
@objc deinit
|
|
251
259
|
}
|
|
260
|
+
extension GSSDK.GSKScanFlowConfiguration {
|
|
261
|
+
@objc(validate:) final public func validate() throws
|
|
262
|
+
}
|
|
252
263
|
extension GSSDK.GSKScanFlowConfiguration {
|
|
253
264
|
@nonobjc convenience public init(dictionary: [Swift.String : Any]) throws
|
|
254
265
|
}
|
|
@@ -264,7 +275,7 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
264
275
|
get
|
|
265
276
|
}
|
|
266
277
|
}
|
|
267
|
-
@objc public enum GSKScanFlowFilterType : Swift.Int {
|
|
278
|
+
@objc public enum GSKScanFlowFilterType : Swift.Int, Swift.CaseIterable {
|
|
268
279
|
@objc(GSKScanFlowFilterAutomatic) case automatic
|
|
269
280
|
@objc(GSKScanFlowFilterNone) case none
|
|
270
281
|
@objc(GSKScanFlowFilterBlackAndWhite) case blackAndWhite
|
|
@@ -272,21 +283,39 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
272
283
|
@objc(GSKScanFlowFilterPhoto) case photo
|
|
273
284
|
@objc(GSKScanFlowFilterMonochrome) case monochrome
|
|
274
285
|
public init?(rawValue: Swift.Int)
|
|
286
|
+
public typealias AllCases = [GSSDK.GSKScanFlowFilterType]
|
|
275
287
|
public typealias RawValue = Swift.Int
|
|
288
|
+
public static var allCases: [GSSDK.GSKScanFlowFilterType] {
|
|
289
|
+
get
|
|
290
|
+
}
|
|
276
291
|
public var rawValue: Swift.Int {
|
|
277
292
|
get
|
|
278
293
|
}
|
|
279
294
|
}
|
|
280
|
-
|
|
295
|
+
extension GSSDK.GSKScanFlowFilterType : Swift.CustomStringConvertible {
|
|
296
|
+
public var description: Swift.String {
|
|
297
|
+
get
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
@objc public enum GSKScanFlowFlashMode : Swift.UInt, Swift.CaseIterable {
|
|
281
301
|
case auto
|
|
282
302
|
case on
|
|
283
303
|
case off
|
|
284
304
|
public init?(rawValue: Swift.UInt)
|
|
305
|
+
public typealias AllCases = [GSSDK.GSKScanFlowFlashMode]
|
|
285
306
|
public typealias RawValue = Swift.UInt
|
|
307
|
+
public static var allCases: [GSSDK.GSKScanFlowFlashMode] {
|
|
308
|
+
get
|
|
309
|
+
}
|
|
286
310
|
public var rawValue: Swift.UInt {
|
|
287
311
|
get
|
|
288
312
|
}
|
|
289
313
|
}
|
|
314
|
+
extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
315
|
+
public var description: Swift.String {
|
|
316
|
+
get
|
|
317
|
+
}
|
|
318
|
+
}
|
|
290
319
|
@objc public enum GSKScanFlowMultiPageFormat : Swift.UInt {
|
|
291
320
|
@objc(GSKScanFlowNone) case none
|
|
292
321
|
@objc(GSKScanFlowPDF) case PDF
|
|
@@ -342,34 +371,25 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
342
371
|
@objc public init(originalFilePath: Swift.String, enhancedFilePath: Swift.String)
|
|
343
372
|
@objc deinit
|
|
344
373
|
}
|
|
345
|
-
@objc
|
|
346
|
-
@objc final public let originalFilePath: Swift.String
|
|
347
|
-
@objc final public var enhancedFilePath: Swift.String {
|
|
348
|
-
@objc get
|
|
349
|
-
@objc set
|
|
350
|
-
}
|
|
351
|
-
@objc final public var appliedQuadrangle: GSSDK.GSKQuadrangle
|
|
352
|
-
@objc final public var appliedFilter: GSSDK.GSKFilterType
|
|
353
|
-
@objc final public var appliedRotation: GSSDK.GSKRotation
|
|
354
|
-
@objc final public var ocrResult: GSSDK.GSKOCRResult?
|
|
355
|
-
@objc final public var structuredDataIBAN: Swift.String?
|
|
356
|
-
@objc final public var structuredDataBIC: Swift.String?
|
|
357
|
-
@objc public init(originalFilePath: Swift.String, enhancedFilePath: Swift.String, appliedQuadrangle: GSSDK.GSKQuadrangle, appliedFilter: GSSDK.GSKFilterType, appliedRotation: GSSDK.GSKRotation, logger: any GSSDK.GSKLogger = GSKLog())
|
|
358
|
-
@objc final public func originalImage() -> UIKit.UIImage?
|
|
359
|
-
@objc final public func enhancedImage() -> UIKit.UIImage?
|
|
360
|
-
@objc final public func delete()
|
|
361
|
-
@objc deinit
|
|
362
|
-
}
|
|
363
|
-
@objc public enum GSKScanFlowSource : Swift.UInt {
|
|
374
|
+
@objc public enum GSKScanFlowSource : Swift.UInt, Swift.CaseIterable {
|
|
364
375
|
case camera
|
|
365
376
|
case imageURL
|
|
366
377
|
case library
|
|
367
378
|
public init?(rawValue: Swift.UInt)
|
|
379
|
+
public typealias AllCases = [GSSDK.GSKScanFlowSource]
|
|
368
380
|
public typealias RawValue = Swift.UInt
|
|
381
|
+
public static var allCases: [GSSDK.GSKScanFlowSource] {
|
|
382
|
+
get
|
|
383
|
+
}
|
|
369
384
|
public var rawValue: Swift.UInt {
|
|
370
385
|
get
|
|
371
386
|
}
|
|
372
387
|
}
|
|
388
|
+
extension GSSDK.GSKScanFlowSource : Swift.CustomStringConvertible {
|
|
389
|
+
public var description: Swift.String {
|
|
390
|
+
get
|
|
391
|
+
}
|
|
392
|
+
}
|
|
373
393
|
@objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowStructuredDataResult : ObjectiveC.NSObject {
|
|
374
394
|
@objc final public var bankDetails: GSSDK.GSKScanFlowStructuredDataResultBankDetails?
|
|
375
395
|
@objc override dynamic public init()
|
|
@@ -381,105 +401,12 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
381
401
|
@objc override dynamic public init()
|
|
382
402
|
@objc deinit
|
|
383
403
|
}
|
|
384
|
-
@_hasMissingDesignatedInitializers @objc final public class GSKScanFlowStructuredDataService : GSSDK.GSKSerialQueueService {
|
|
385
|
-
@objc public static let shared: GSSDK.GSKScanFlowStructuredDataService
|
|
386
|
-
@objc final public func process(_ scan: GSSDK.GSKScanFlowScanInternal, configuration: GSSDK.GSKScanFlowConfiguration)
|
|
387
|
-
@objc deinit
|
|
388
|
-
}
|
|
389
|
-
@_inheritsConvenienceInitializers @objc public class GSKSerialQueueService : ObjectiveC.NSObject {
|
|
390
|
-
@objc public func waitForCompletion(_ onDone: @escaping () -> Swift.Void)
|
|
391
|
-
@objc override dynamic public init()
|
|
392
|
-
@objc deinit
|
|
393
|
-
}
|
|
394
404
|
@_inheritsConvenienceInitializers @objc final public class GSKUIBackgroundProcessing : ObjectiveC.NSObject {
|
|
395
405
|
@objc public static let shared: GSSDK.GSKUIBackgroundProcessing
|
|
396
406
|
@objc final public let documentGenerationQueue: Dispatch.DispatchQueue
|
|
397
407
|
@objc override dynamic public init()
|
|
398
408
|
@objc deinit
|
|
399
409
|
}
|
|
400
|
-
@_inheritsConvenienceInitializers @objc final public class GSKUIOCRService : GSSDK.GSKSerialQueueService {
|
|
401
|
-
@objc public static let shared: GSSDK.GSKUIOCRService
|
|
402
|
-
@objc final public var pendingCount: Swift.Int {
|
|
403
|
-
get
|
|
404
|
-
}
|
|
405
|
-
@objc final public func process(_ scan: GSSDK.GSKScanFlowScanInternal, configuration: GSSDK.GSKScanFlowOCRConfiguration)
|
|
406
|
-
@objc override dynamic public init()
|
|
407
|
-
@objc deinit
|
|
408
|
-
}
|
|
409
|
-
@objc public protocol GSKUICameraViewControllerDelegate {
|
|
410
|
-
@objc func cameraViewControllerDidCancel(_ viewController: GSSDK.GSKUICameraViewController)
|
|
411
|
-
@objc func cameraViewControllerDone(_ viewController: GSSDK.GSKUICameraViewController)
|
|
412
|
-
@objc func cameraViewControllerDidSnapPhoto(_ viewController: GSSDK.GSKUICameraViewController)
|
|
413
|
-
@objc func cameraViewController(_ viewController: GSSDK.GSKUICameraViewController, didScan scan: GSSDK.GSKScan, onComplete: @escaping () -> Swift.Void)
|
|
414
|
-
@objc func cameraViewController(_ viewController: GSSDK.GSKUICameraViewController, didFailWithError error: any Swift.Error)
|
|
415
|
-
}
|
|
416
|
-
@objc @objcMembers @_Concurrency.MainActor(unsafe) final public class GSKUICameraViewController : GSSDK.GSKCameraViewController {
|
|
417
|
-
@_Concurrency.MainActor(unsafe) @objc override final public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
|
|
418
|
-
@objc get
|
|
419
|
-
}
|
|
420
|
-
@objc @_Concurrency.MainActor(unsafe) weak final public var delegate: (any GSSDK.GSKUICameraViewControllerDelegate)?
|
|
421
|
-
@objc @_Concurrency.MainActor(unsafe) final public var doneButton: UIKit.UIButton {
|
|
422
|
-
@objc get
|
|
423
|
-
}
|
|
424
|
-
@objc @_Concurrency.MainActor(unsafe) public init(session: GSSDK.GSKCameraSession, configuration: GSSDK.GSKScanFlowConfiguration, logger: any GSSDK.GSKLogger = GSKLog())
|
|
425
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func viewDidLoad()
|
|
426
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func viewWillAppear(_ animated: Swift.Bool)
|
|
427
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionDidSetup(_ cameraSession: GSSDK.GSKCameraSession)
|
|
428
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionWillSnapPhoto(_ cameraSession: GSSDK.GSKCameraSession)
|
|
429
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionDidSnapPhoto(_ cameraSession: GSSDK.GSKCameraSession)
|
|
430
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSession(_ cameraSession: GSSDK.GSKCameraSession, didGenerate scan: GSSDK.GSKScan)
|
|
431
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSession(_ cameraSession: GSSDK.GSKCameraSession, didFailWithError error: any Swift.Error)
|
|
432
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionIsSearchingQuadrangle(_ cameraSession: GSSDK.GSKCameraSession)
|
|
433
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionFailed(toFindQuadrangle cameraSession: GSSDK.GSKCameraSession)
|
|
434
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSession(_ cameraSession: GSSDK.GSKCameraSession, didFind quadrangle: GSSDK.GSKQuadrangle)
|
|
435
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSessionIsAbout(toChooseQuadrangle cameraSession: GSSDK.GSKCameraSession)
|
|
436
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func cameraSession(_ cameraSession: GSSDK.GSKCameraSession, willAutoTriggerWith quadrangle: GSSDK.GSKQuadrangle)
|
|
437
|
-
@objc deinit
|
|
438
|
-
}
|
|
439
|
-
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc @_Concurrency.MainActor(unsafe) public class BVImageContentViewObjCWrapperView : UIKit.UIView {
|
|
440
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreFoundation.CGRect)
|
|
441
|
-
@objc @_Concurrency.MainActor(unsafe) public func setImage(_ image: UIKit.UIImage)
|
|
442
|
-
@objc @_Concurrency.MainActor(unsafe) public func setZoomLimits()
|
|
443
|
-
@objc deinit
|
|
444
|
-
}
|
|
445
|
-
@_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) final public class BVImageContentScrollView : GSSDK.BVContentScrollView<UIKit.UIImageView> {
|
|
446
|
-
@_Concurrency.MainActor(unsafe) public init(frame: CoreFoundation.CGRect)
|
|
447
|
-
@objc deinit
|
|
448
|
-
@_Concurrency.MainActor(unsafe) @objc override final public func observeValue(forKeyPath keyPath: Swift.String?, of object: Any?, change: [Foundation.NSKeyValueChangeKey : Any]?, context: Swift.UnsafeMutableRawPointer?)
|
|
449
|
-
@_Concurrency.MainActor(unsafe) override final public var contentViewContentSize: CoreFoundation.CGSize {
|
|
450
|
-
get
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
@_Concurrency.MainActor(unsafe) open class BVContentScrollView<ContentViewType> : UIKit.UIScrollView, UIKit.UIScrollViewDelegate where ContentViewType : UIKit.UIView {
|
|
454
|
-
@_Concurrency.MainActor(unsafe) final public let contentView: ContentViewType
|
|
455
|
-
@_Concurrency.MainActor(unsafe) public var doubleTapRecognizer: UIKit.UITapGestureRecognizer! {
|
|
456
|
-
get
|
|
457
|
-
}
|
|
458
|
-
@_Concurrency.MainActor(unsafe) public init(frame: CoreFoundation.CGRect, contentView: ContentViewType)
|
|
459
|
-
@_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder)
|
|
460
|
-
@_Concurrency.MainActor(unsafe) public var availableSize: CoreFoundation.CGSize {
|
|
461
|
-
get
|
|
462
|
-
}
|
|
463
|
-
@_Concurrency.MainActor(unsafe) public var padding: CoreFoundation.CGFloat
|
|
464
|
-
@_Concurrency.MainActor(unsafe) open var contentViewContentSize: CoreFoundation.CGSize {
|
|
465
|
-
get
|
|
466
|
-
}
|
|
467
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public var contentInset: UIKit.UIEdgeInsets {
|
|
468
|
-
@objc get
|
|
469
|
-
@objc set
|
|
470
|
-
}
|
|
471
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public var bounds: CoreFoundation.CGRect {
|
|
472
|
-
@objc get
|
|
473
|
-
@objc set
|
|
474
|
-
}
|
|
475
|
-
@_Concurrency.MainActor(unsafe) @objc override dynamic public func layoutSubviews()
|
|
476
|
-
@_Concurrency.MainActor(unsafe) public func setZoomLimits()
|
|
477
|
-
@objc @_Concurrency.MainActor(unsafe) open func handleDoubleTap(_ gestureRecognizer: UIKit.UITapGestureRecognizer)
|
|
478
|
-
@_Concurrency.MainActor(unsafe) @objc public func viewForZooming(in scrollView: UIKit.UIScrollView) -> UIKit.UIView?
|
|
479
|
-
@_Concurrency.MainActor(unsafe) @objc public func scrollViewDidEndZooming(_ scrollView: UIKit.UIScrollView, with view: UIKit.UIView?, atScale scale: CoreFoundation.CGFloat)
|
|
480
|
-
@_Concurrency.MainActor(unsafe) @objc open func scrollViewDidZoom(_ scrollView: UIKit.UIScrollView)
|
|
481
|
-
@objc deinit
|
|
482
|
-
}
|
|
483
410
|
public struct GSKScanFlowButton<Label> : SwiftUI.View where Label : SwiftUI.View {
|
|
484
411
|
public var configuration: () -> GSSDK.GSKScanFlowConfiguration
|
|
485
412
|
public var action: (Swift.Result<GSSDK.GSKScanFlowResult, any Swift.Error>) -> Swift.Void
|
|
@@ -493,6 +420,7 @@ public struct GSKScanFlowButton<Label> : SwiftUI.View where Label : SwiftUI.View
|
|
|
493
420
|
extension GSSDK.GSKScanFlowButton where Label == SwiftUI.Text {
|
|
494
421
|
public init(_ label: Swift.String, configuration: @escaping () -> GSSDK.GSKScanFlowConfiguration, action: @escaping (Swift.Result<GSSDK.GSKScanFlowResult, any Swift.Error>) -> Swift.Void)
|
|
495
422
|
}
|
|
423
|
+
extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
496
424
|
extension GSSDK.GSKScanFlowError : Swift.Equatable {}
|
|
497
425
|
extension GSSDK.GSKScanFlowError : Swift.Hashable {}
|
|
498
426
|
extension GSSDK.GSKScanFlowError : Swift.RawRepresentable {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/react-native-genius-scan",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-beta2",
|
|
4
4
|
"description": "React Native Plugin for Genius Scan SDK",
|
|
5
5
|
"author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
|
|
6
6
|
"homepage": "https://geniusscansdk.com",
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// GSKScanFlow.h
|
|
3
|
-
// GSSDKScanFlow
|
|
4
|
-
//
|
|
5
|
-
// Created by Bruno Virlet on 4/26/19.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
|
|
11
|
-
@class GSKOCRLanguage;
|
|
12
|
-
@class GSKScanFlowConfiguration;
|
|
13
|
-
@class GSKScanFlowResult;
|
|
14
|
-
|
|
15
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
-
|
|
17
|
-
FOUNDATION_EXPORT NSErrorDomain const GSKScanFlowErrorDomain;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
The various formats into which the OCR result can be made available.
|
|
21
|
-
|
|
22
|
-
This is an option set so you can combine multiple formats.
|
|
23
|
-
*/
|
|
24
|
-
typedef NS_OPTIONS(NSUInteger, GSKScanFlowOCROutputFormats) {
|
|
25
|
-
/// No output formats
|
|
26
|
-
GSKScanFlowOCROutputFormatsNone = 0,
|
|
27
|
-
/// Output OCR result as raw text
|
|
28
|
-
GSKScanFlowOCROutputFormatsRawText = 1 << 0,
|
|
29
|
-
/// Output OCR result in HOCR format
|
|
30
|
-
GSKScanFlowOCROutputFormatsHOCR = 1 << 1,
|
|
31
|
-
/// Add OCR result as a text layer in the generated PDF file (if any)
|
|
32
|
-
GSKScanFlowOCROutputFormatsTextLayerInPDF = 1 << 2,
|
|
33
|
-
/// All the output formats
|
|
34
|
-
GSKScanFlowOCROutputFormatsAll = NSUIntegerMax,
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
The types of structured data to extract.
|
|
39
|
-
*/
|
|
40
|
-
typedef NS_OPTIONS(NSUInteger, GSKScanFlowStructuredData) {
|
|
41
|
-
GSKScanFlowStructuredDataNone = 0,
|
|
42
|
-
/// To scan IBAN and BIC/SWIFT codes
|
|
43
|
-
GSKScanFlowStructuredDataBankDetails = 1 << 0
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
The various image processing actions available in the post-processing screen.
|
|
48
|
-
|
|
49
|
-
This is an option set so you can combine multiple actions.
|
|
50
|
-
*/
|
|
51
|
-
typedef NS_OPTIONS(NSUInteger, GSKScanFlowPostProcessingActions) {
|
|
52
|
-
/// No actions
|
|
53
|
-
GSKScanFlowPostProcessingActionNone = 0,
|
|
54
|
-
/// The filter action
|
|
55
|
-
GSKScanFlowPostProcessingActionEditFilter = 1 << 0,
|
|
56
|
-
/// The rotate scan action
|
|
57
|
-
GSKScanFlowPostProcessingActionRotate = 1 << 1,
|
|
58
|
-
/// The distortion (book curvature) correction
|
|
59
|
-
GSKScanFlowPostProcessingActionDistortionCorrection = 1 << 2,
|
|
60
|
-
/// All the actions
|
|
61
|
-
GSKScanFlowPostProcessingActionAll = NSUIntegerMax,
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
A high-level scanner module.
|
|
66
|
-
|
|
67
|
-
You present it and when the user is done, you obtain a result object containing the scanned documents.
|
|
68
|
-
|
|
69
|
-
The scan flow can be customized with a GSKScanFlowConfiguration.
|
|
70
|
-
*/
|
|
71
|
-
@interface GSKScanFlow : NSObject
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
Instantiates a GSKScanFlow with the provided configuration.
|
|
75
|
-
|
|
76
|
-
@param configuration The provided configuration
|
|
77
|
-
*/
|
|
78
|
-
+ (instancetype)scanFlowWithConfiguration:(GSKScanFlowConfiguration *)configuration;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
Present the scan flow.
|
|
82
|
-
|
|
83
|
-
@param viewController The view controller to present the scan flow from.
|
|
84
|
-
@param completionBlock A completion block that will be called on the main thread upon completion of the scan flow. It received a GSKScanFlowResult object as a parameter. This object gives you access to the scanned documents.
|
|
85
|
-
@param errorBlock A block called upon error
|
|
86
|
-
*/
|
|
87
|
-
- (void)startFromViewController:(UIViewController *)viewController onSuccess:(void (^_Nonnull)(GSKScanFlowResult *))completionBlock failure:(void (^_Nonnull)(NSError *))errorBlock;
|
|
88
|
-
|
|
89
|
-
@end
|
|
90
|
-
|
|
91
|
-
NS_ASSUME_NONNULL_END
|