@microblink/blinkid-react-native 7.6.2 → 7.7.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/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/.project +28 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdDeserializationUtilities.kt +3 -5
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdSerializationUtilities.kt +781 -710
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativeModule.kt +4 -4
- package/ios/BlinkIdSerializationUtilities.swift +694 -657
- package/ios/BlinkidReactNativeModule.swift +2 -2
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/BlinkID +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID-Swift.h +1925 -780
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.abi.json +10139 -7306
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.private.swiftinterface +194 -122
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftinterface +194 -122
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +2 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/_CodeSignature/CodeResources +17 -17
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/conan.xcconfig +3 -3
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/BlinkID +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID-Swift.h +4034 -1744
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.abi.json +10139 -7306
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +194 -122
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftinterface +194 -122
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.abi.json +10139 -7306
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +194 -122
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +194 -122
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +2 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/_CodeSignature/CodeResources +27 -27
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/conan.xcconfig +3 -3
- package/ios/Frameworks/BlinkIDUX.xcframework/Info.plist +5 -5
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeResources +52 -635
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.abi.json +7045 -4222
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.package.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.private.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeResources +2 -234
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.abi.json +7045 -4222
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.abi.json +7045 -4222
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +188 -90
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/_CodeSignature/CodeResources +1 -1
- package/lib/module/blinkIdResult.js +58 -0
- package/lib/module/blinkIdResult.js.map +1 -1
- package/lib/module/types.js +78 -3
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/blinkIdResult.d.ts +27 -1
- package/lib/typescript/src/blinkIdResult.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +71 -6
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/android/.project +28 -0
- package/src/blinkIdResult.ts +65 -0
- package/src/blinkIdSettings.ts +1 -1
- package/src/types.ts +120 -12
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeRequirements-1 +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
|
3
3
|
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-upcoming-feature ExistentialAny -enable-experimental-feature DebugDescriptionMacro -module-name BlinkIDUX -package-name blinkid_ios
|
|
4
|
-
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import BlinkID
|
|
7
7
|
import Combine
|
|
@@ -69,7 +69,10 @@ public actor BlinkIDAnalyzer : BlinkIDUX.CameraFrameAnalyzer {
|
|
|
69
69
|
public struct BlinkIDResultState {
|
|
70
70
|
public let scanningResult: BlinkID.BlinkIDScanningResult?
|
|
71
71
|
}
|
|
72
|
-
public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtocol {
|
|
72
|
+
public enum BlinkIDScanningAlertType : Swift.Int, Swift.Sendable, BlinkIDUX.AlertTypeProtocol {
|
|
73
|
+
public var id: Swift.Int {
|
|
74
|
+
get
|
|
75
|
+
}
|
|
73
76
|
case timeout
|
|
74
77
|
case disallowedClass
|
|
75
78
|
public var title: Swift.String {
|
|
@@ -78,13 +81,22 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
78
81
|
public var description: Swift.String {
|
|
79
82
|
get
|
|
80
83
|
}
|
|
81
|
-
public
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
public var buttonTitle: Swift.String {
|
|
85
|
+
get
|
|
86
|
+
}
|
|
87
|
+
public var pingletAlertType: BlinkID.UxEventPinglet.AlertType {
|
|
88
|
+
get
|
|
89
|
+
}
|
|
90
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
91
|
+
public init?(rawValue: Swift.Int)
|
|
92
|
+
#endif
|
|
93
|
+
public typealias ID = Swift.Int
|
|
94
|
+
public typealias RawValue = Swift.Int
|
|
95
|
+
public var rawValue: Swift.Int {
|
|
84
96
|
get
|
|
85
97
|
}
|
|
86
98
|
}
|
|
87
|
-
@
|
|
99
|
+
@_Concurrency.MainActor final public class BlinkIDUXModel : BlinkIDUX.ScanningViewModel<BlinkID.BlinkIDScanningResult, BlinkIDUX.UIEvent, BlinkIDUX.ReticleStateMachine, BlinkIDUX.BlinkIDScanningAlertType> {
|
|
88
100
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
89
101
|
@Combine.Published @_projectedValueProperty($result) @_Concurrency.MainActor final public var result: BlinkIDUX.BlinkIDResultState? {
|
|
90
102
|
get
|
|
@@ -101,12 +113,9 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
101
113
|
set
|
|
102
114
|
}
|
|
103
115
|
#endif
|
|
104
|
-
@_Concurrency.MainActor
|
|
105
|
-
@_Concurrency.MainActor override final public func analyze() async
|
|
116
|
+
@_Concurrency.MainActor public init(analyzer: any BlinkIDUX.CameraFrameAnalyzer<BlinkID.CameraFrame, BlinkIDUX.UIEvent>, uxSettings: BlinkIDUX.ScanningUXSettings = ScanningUXSettings())
|
|
106
117
|
@_Concurrency.MainActor override final public func processAnalyzerResult() async
|
|
107
|
-
@_Concurrency.MainActor override final public func licenseErrorAlertDismised()
|
|
108
118
|
@_Concurrency.MainActor override final public func timeoutAlertDismised()
|
|
109
|
-
@_Concurrency.MainActor final public func finishScan() async
|
|
110
119
|
@objc deinit
|
|
111
120
|
}
|
|
112
121
|
@_Concurrency.MainActor @preconcurrency public struct BlinkIDUXView : SwiftUICore.View {
|
|
@@ -116,6 +125,107 @@ public enum BlinkIDScanningAlertType : Swift.Sendable, BlinkIDUX.AlertTypeProtoc
|
|
|
116
125
|
}
|
|
117
126
|
public typealias Body = @_opaqueReturnTypeOf("$s9BlinkIDUX0A8IDUXViewV4bodyQrvp", 0) __
|
|
118
127
|
}
|
|
128
|
+
public enum DocumentSide : Swift.Sendable, Swift.Equatable {
|
|
129
|
+
case front
|
|
130
|
+
case back
|
|
131
|
+
case barcode
|
|
132
|
+
case passport(BlinkIDUX.PassportOrientation)
|
|
133
|
+
case passportBarcode
|
|
134
|
+
public static func == (a: BlinkIDUX.DocumentSide, b: BlinkIDUX.DocumentSide) -> Swift.Bool
|
|
135
|
+
}
|
|
136
|
+
public enum PassportOrientation : Swift.Sendable, Swift.Equatable {
|
|
137
|
+
case none
|
|
138
|
+
case left90
|
|
139
|
+
case right90
|
|
140
|
+
public static func == (a: BlinkIDUX.PassportOrientation, b: BlinkIDUX.PassportOrientation) -> Swift.Bool
|
|
141
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
142
|
+
public var hashValue: Swift.Int {
|
|
143
|
+
get
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
public enum ReticleState : BlinkIDUX.ReticleStateProtocol {
|
|
147
|
+
case front
|
|
148
|
+
case back
|
|
149
|
+
case barcode
|
|
150
|
+
case detecting
|
|
151
|
+
case flip
|
|
152
|
+
case error(Swift.String)
|
|
153
|
+
case inactive
|
|
154
|
+
case passport(Swift.String)
|
|
155
|
+
case inactiveWithMessage(Swift.String)
|
|
156
|
+
public static var initialState: BlinkIDUX.ReticleState {
|
|
157
|
+
get
|
|
158
|
+
}
|
|
159
|
+
public static var inactiveState: BlinkIDUX.ReticleState {
|
|
160
|
+
get
|
|
161
|
+
}
|
|
162
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
163
|
+
public var text: Swift.String? {
|
|
164
|
+
get
|
|
165
|
+
}
|
|
166
|
+
#endif
|
|
167
|
+
public var duration: Swift.Double {
|
|
168
|
+
get
|
|
169
|
+
}
|
|
170
|
+
public var shouldExpire: Swift.Bool {
|
|
171
|
+
get
|
|
172
|
+
}
|
|
173
|
+
public var canBeFallback: Swift.Bool {
|
|
174
|
+
get
|
|
175
|
+
}
|
|
176
|
+
public var isErrorState: Swift.Bool {
|
|
177
|
+
get
|
|
178
|
+
}
|
|
179
|
+
public var reticleStateAppearance: BlinkIDUX.ReticleStateAppearance {
|
|
180
|
+
get
|
|
181
|
+
}
|
|
182
|
+
public static func == (a: BlinkIDUX.ReticleState, b: BlinkIDUX.ReticleState) -> Swift.Bool
|
|
183
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
184
|
+
public var hashValue: Swift.Int {
|
|
185
|
+
get
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
public class ReticleStateMachine : BlinkIDUX.ReticleStateMachineProtocol {
|
|
189
|
+
public typealias ReticleStateType = BlinkIDUX.ReticleState
|
|
190
|
+
@Combine.Published @_projectedValueProperty($reticleState) public var reticleState: BlinkIDUX.ReticleState {
|
|
191
|
+
get
|
|
192
|
+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
193
|
+
set
|
|
194
|
+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
195
|
+
_modify
|
|
196
|
+
}
|
|
197
|
+
public var $reticleState: Combine.Published<BlinkIDUX.ReticleState>.Publisher {
|
|
198
|
+
get
|
|
199
|
+
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
200
|
+
set
|
|
201
|
+
}
|
|
202
|
+
public var fallbackState: BlinkIDUX.ReticleState
|
|
203
|
+
public var lastReticleStateChange: Foundation.TimeInterval
|
|
204
|
+
public var eventCounter: [BlinkIDUX.ReticleState : Swift.Int]
|
|
205
|
+
public var reticleStateIsInterruptible: Swift.Bool
|
|
206
|
+
public init()
|
|
207
|
+
public func calculateState(using mostFrequentState: BlinkIDUX.ReticleState) -> BlinkIDUX.ReticleState
|
|
208
|
+
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
|
|
209
|
+
@objc deinit
|
|
210
|
+
}
|
|
211
|
+
public enum UIEvent : Swift.Equatable, Swift.Sendable {
|
|
212
|
+
case requestDocumentSide(side: BlinkIDUX.DocumentSide)
|
|
213
|
+
case wrongSide
|
|
214
|
+
case wrongSidePassport(passportOrientation: BlinkIDUX.PassportOrientation)
|
|
215
|
+
case blur
|
|
216
|
+
case glare
|
|
217
|
+
case occlusion
|
|
218
|
+
case tilt
|
|
219
|
+
case tooClose
|
|
220
|
+
case tooFar
|
|
221
|
+
case tooCloseToEdge
|
|
222
|
+
case notFullyVisible
|
|
223
|
+
case tooDark
|
|
224
|
+
case tooBright
|
|
225
|
+
case facePhotoNotFullyVisible
|
|
226
|
+
case wrongSidePassportWithBarcode
|
|
227
|
+
public static func == (a: BlinkIDUX.UIEvent, b: BlinkIDUX.UIEvent) -> Swift.Bool
|
|
228
|
+
}
|
|
119
229
|
@_hasMissingDesignatedInitializers final public class BlinkIDTheme : BlinkIDUX.UXThemeProtocol {
|
|
120
230
|
public static let shared: BlinkIDUX.BlinkIDTheme
|
|
121
231
|
final public var alertTitleColor: SwiftUICore.Color
|
|
@@ -178,24 +288,6 @@ public protocol CameraFrameAnalyzer<Frame, Event> : Swift.Sendable {
|
|
|
178
288
|
var stepTimeoutDuration: Foundation.TimeInterval { get async }
|
|
179
289
|
var sessionNumber: Swift.Int { get }
|
|
180
290
|
}
|
|
181
|
-
public enum PassportOrientation : Swift.Sendable, Swift.Equatable {
|
|
182
|
-
case none
|
|
183
|
-
case left90
|
|
184
|
-
case right90
|
|
185
|
-
public static func == (a: BlinkIDUX.PassportOrientation, b: BlinkIDUX.PassportOrientation) -> Swift.Bool
|
|
186
|
-
public func hash(into hasher: inout Swift.Hasher)
|
|
187
|
-
public var hashValue: Swift.Int {
|
|
188
|
-
get
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
public enum DocumentSide : Swift.Sendable, Swift.Equatable {
|
|
192
|
-
case front
|
|
193
|
-
case back
|
|
194
|
-
case barcode
|
|
195
|
-
case passport(BlinkIDUX.PassportOrientation)
|
|
196
|
-
case passportBarcode
|
|
197
|
-
public static func == (a: BlinkIDUX.DocumentSide, b: BlinkIDUX.DocumentSide) -> Swift.Bool
|
|
198
|
-
}
|
|
199
291
|
@_Concurrency.MainActor final public class Camera : BlinkIDUX.CameraModel {
|
|
200
292
|
public enum CameraPosition : Swift.Equatable {
|
|
201
293
|
case back
|
|
@@ -372,14 +464,16 @@ public protocol PreviewTarget {
|
|
|
372
464
|
}
|
|
373
465
|
public typealias Body = @_opaqueReturnTypeOf("$s9BlinkIDUX14NoInternetViewV4bodyQrvp", 0) __
|
|
374
466
|
}
|
|
375
|
-
public protocol AlertTypeProtocol {
|
|
467
|
+
public protocol AlertTypeProtocol : Swift.Identifiable {
|
|
376
468
|
var title: Swift.String { get }
|
|
377
469
|
var description: Swift.String { get }
|
|
470
|
+
var buttonTitle: Swift.String { get }
|
|
471
|
+
var pingletAlertType: BlinkID.UxEventPinglet.AlertType { get }
|
|
378
472
|
}
|
|
379
473
|
public struct ScanningUXSettings {
|
|
380
474
|
public init(showIntroductionAlert: Swift.Bool = true, showHelpButton: Swift.Bool = true, preferredCameraPosition: BlinkIDUX.Camera.CameraPosition = .back, allowHapticFeedback: Swift.Bool = true)
|
|
381
475
|
}
|
|
382
|
-
@_Concurrency.MainActor public class ScanningViewModel<T, U> : Foundation.ObservableObject {
|
|
476
|
+
@_Concurrency.MainActor public class ScanningViewModel<T, U, V, A> : Foundation.ObservableObject where V : BlinkIDUX.ReticleStateMachineProtocol, A : BlinkIDUX.AlertTypeProtocol {
|
|
383
477
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
384
478
|
@Combine.Published @_projectedValueProperty($scanningResult) @_Concurrency.MainActor public var scanningResult: T? {
|
|
385
479
|
get
|
|
@@ -396,22 +490,6 @@ public struct ScanningUXSettings {
|
|
|
396
490
|
set
|
|
397
491
|
}
|
|
398
492
|
#endif
|
|
399
|
-
#if compiler(>=5.3) && $NonescapableTypes
|
|
400
|
-
@Combine.Published @_projectedValueProperty($alertType) @_Concurrency.MainActor public var alertType: U? {
|
|
401
|
-
get
|
|
402
|
-
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
403
|
-
set
|
|
404
|
-
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
405
|
-
_modify
|
|
406
|
-
}
|
|
407
|
-
#endif
|
|
408
|
-
#if compiler(>=5.3) && $NonescapableTypes
|
|
409
|
-
@_Concurrency.MainActor public var $alertType: Combine.Published<U?>.Publisher {
|
|
410
|
-
get
|
|
411
|
-
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
412
|
-
set
|
|
413
|
-
}
|
|
414
|
-
#endif
|
|
415
493
|
@Combine.Published @_projectedValueProperty($roi) @_Concurrency.MainActor public var roi: BlinkID.RegionOfInterest {
|
|
416
494
|
get
|
|
417
495
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -424,18 +502,7 @@ public struct ScanningUXSettings {
|
|
|
424
502
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
425
503
|
set
|
|
426
504
|
}
|
|
427
|
-
@
|
|
428
|
-
get
|
|
429
|
-
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
430
|
-
set
|
|
431
|
-
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
432
|
-
_modify
|
|
433
|
-
}
|
|
434
|
-
@_Concurrency.MainActor public var $reticleState: Combine.Published<BlinkIDUX.ReticleState>.Publisher {
|
|
435
|
-
get
|
|
436
|
-
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
437
|
-
set
|
|
438
|
-
}
|
|
505
|
+
@_Concurrency.MainActor final public let reticleStateMachine: V
|
|
439
506
|
@Combine.Published @_projectedValueProperty($isTorchOn) @_Concurrency.MainActor public var isTorchOn: Swift.Bool {
|
|
440
507
|
get
|
|
441
508
|
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
@@ -468,18 +535,33 @@ public struct ScanningUXSettings {
|
|
|
468
535
|
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
469
536
|
set
|
|
470
537
|
}
|
|
471
|
-
|
|
538
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
539
|
+
@Combine.Published @_projectedValueProperty($alertType) @_Concurrency.MainActor public var alertType: A? {
|
|
540
|
+
get
|
|
541
|
+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
542
|
+
set
|
|
543
|
+
}
|
|
544
|
+
#endif
|
|
545
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
546
|
+
@_Concurrency.MainActor public var $alertType: Combine.Published<A?>.Publisher {
|
|
547
|
+
get
|
|
548
|
+
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
|
|
549
|
+
set
|
|
550
|
+
}
|
|
551
|
+
#endif
|
|
552
|
+
@_Concurrency.MainActor public init(analyzer: any BlinkIDUX.CameraFrameAnalyzer<BlinkID.CameraFrame, U>, uxSettings: BlinkIDUX.ScanningUXSettings = ScanningUXSettings(), reticleStateMachine: V, firstSideFinishedText: Swift.String, scanFinishedText: Swift.String)
|
|
472
553
|
@objc deinit
|
|
473
|
-
@_Concurrency.MainActor public func analyze() async
|
|
474
554
|
@_Concurrency.MainActor public func processAnalyzerResult() async
|
|
475
555
|
@_Concurrency.MainActor public func licenseErrorAlertDismised()
|
|
476
556
|
@_Concurrency.MainActor public func timeoutAlertDismised()
|
|
477
557
|
@_Concurrency.MainActor public func presentAlert()
|
|
478
558
|
@_Concurrency.MainActor public func dismissAlert()
|
|
479
559
|
@_Concurrency.MainActor public func stopEventHandling()
|
|
560
|
+
@_Concurrency.MainActor public func startScanning()
|
|
480
561
|
@_Concurrency.MainActor public func pauseScanning()
|
|
481
562
|
@_Concurrency.MainActor public func resumeScanning()
|
|
482
563
|
@_Concurrency.MainActor public func restartScanning()
|
|
564
|
+
@_Concurrency.MainActor public func finishScan() async
|
|
483
565
|
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
|
|
484
566
|
}
|
|
485
567
|
public protocol UXThemeProtocol {
|
|
@@ -528,45 +610,61 @@ public enum MicroblinkColor : Swift.String {
|
|
|
528
610
|
extension SwiftUICore.Color {
|
|
529
611
|
public init(_ mbColor: BlinkIDUX.MicroblinkColor)
|
|
530
612
|
}
|
|
613
|
+
public protocol OnboardingStepProtocol : Swift.CaseIterable, Swift.Hashable, Swift.Identifiable {
|
|
614
|
+
var image: SwiftUICore.Image { get }
|
|
615
|
+
var title: Swift.String { get }
|
|
616
|
+
var description: Swift.String { get }
|
|
617
|
+
}
|
|
531
618
|
extension SwiftUICore.Animation {
|
|
532
619
|
public static func easeOutExpo(duration: Foundation.TimeInterval) -> SwiftUICore.Animation
|
|
533
620
|
}
|
|
534
|
-
public enum
|
|
535
|
-
case
|
|
536
|
-
case back
|
|
537
|
-
case barcode
|
|
621
|
+
public enum ReticleStateAppearance {
|
|
622
|
+
case empty
|
|
538
623
|
case detecting
|
|
539
|
-
case
|
|
540
|
-
case error
|
|
541
|
-
|
|
542
|
-
case passport(Swift.String)
|
|
543
|
-
case inactiveWithMessage(Swift.String)
|
|
544
|
-
public static func == (a: BlinkIDUX.ReticleState, b: BlinkIDUX.ReticleState) -> Swift.Bool
|
|
624
|
+
case spinning
|
|
625
|
+
case error
|
|
626
|
+
public static func == (a: BlinkIDUX.ReticleStateAppearance, b: BlinkIDUX.ReticleStateAppearance) -> Swift.Bool
|
|
545
627
|
public func hash(into hasher: inout Swift.Hasher)
|
|
546
628
|
public var hashValue: Swift.Int {
|
|
547
629
|
get
|
|
548
630
|
}
|
|
549
631
|
}
|
|
550
|
-
public
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
632
|
+
public protocol ReticleStateMachineProtocol : Combine.ObservableObject {
|
|
633
|
+
associatedtype ReticleStateType : BlinkIDUX.ReticleStateProtocol
|
|
634
|
+
var reticleState: Self.ReticleStateType { get set }
|
|
635
|
+
var fallbackState: Self.ReticleStateType { get set }
|
|
636
|
+
var lastReticleStateChange: Foundation.TimeInterval { get set }
|
|
637
|
+
var eventCounter: [Self.ReticleStateType : Swift.Int] { get set }
|
|
638
|
+
var reticleStateIsInterruptible: Swift.Bool { get set }
|
|
639
|
+
func nextState(state: Self.ReticleStateType, force: Swift.Bool) -> Swift.Bool
|
|
640
|
+
func calculateState(using mostFrequentState: Self.ReticleStateType) -> Self.ReticleStateType
|
|
641
|
+
func setInitialState()
|
|
642
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
643
|
+
func calculateRemainingTime(stateDuration: Swift.Double?) -> Swift.Double
|
|
644
|
+
#endif
|
|
645
|
+
}
|
|
646
|
+
extension BlinkIDUX.ReticleStateMachineProtocol {
|
|
647
|
+
public func nextState(state: Self.ReticleStateType, force: Swift.Bool = false) -> Swift.Bool
|
|
648
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
649
|
+
public func calculateRemainingTime(stateDuration: Swift.Double? = nil) -> Swift.Double
|
|
650
|
+
#endif
|
|
651
|
+
public func setInitialState()
|
|
652
|
+
}
|
|
653
|
+
public protocol ReticleStateProtocol : Swift.Hashable {
|
|
654
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
655
|
+
var text: Swift.String? { get }
|
|
656
|
+
#endif
|
|
657
|
+
var duration: Swift.Double { get }
|
|
658
|
+
var shouldExpire: Swift.Bool { get }
|
|
659
|
+
var canBeFallback: Swift.Bool { get }
|
|
660
|
+
var isErrorState: Swift.Bool { get }
|
|
661
|
+
static var initialState: Self { get }
|
|
662
|
+
static var inactiveState: Self { get }
|
|
663
|
+
var reticleStateAppearance: BlinkIDUX.ReticleStateAppearance { get }
|
|
567
664
|
}
|
|
568
665
|
extension BlinkIDUX.BlinkIDScanningAlertType : Swift.Equatable {}
|
|
569
666
|
extension BlinkIDUX.BlinkIDScanningAlertType : Swift.Hashable {}
|
|
667
|
+
extension BlinkIDUX.BlinkIDScanningAlertType : Swift.RawRepresentable {}
|
|
570
668
|
extension BlinkIDUX.BlinkIDUXView : Swift.Sendable {}
|
|
571
669
|
extension BlinkIDUX.PassportOrientation : Swift.Hashable {}
|
|
572
670
|
extension BlinkIDUX.Camera : Swift.Sendable {}
|
|
@@ -587,5 +685,5 @@ extension BlinkIDUX.ScanningViewModel : Swift.Sendable {}
|
|
|
587
685
|
extension BlinkIDUX.MicroblinkColor : Swift.Equatable {}
|
|
588
686
|
extension BlinkIDUX.MicroblinkColor : Swift.Hashable {}
|
|
589
687
|
extension BlinkIDUX.MicroblinkColor : Swift.RawRepresentable {}
|
|
590
|
-
extension BlinkIDUX.
|
|
591
|
-
extension BlinkIDUX.
|
|
688
|
+
extension BlinkIDUX.ReticleStateAppearance : Swift.Equatable {}
|
|
689
|
+
extension BlinkIDUX.ReticleStateAppearance : Swift.Hashable {}
|