@regulaforensics/cordova-plugin-document-reader-api 8.4.304-nightly → 8.4.346-rc
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/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/Config.kt +8 -0
- package/src/android/JSONConstructor.kt +346 -40
- package/src/android/Main.kt +69 -12
- package/src/android/Utils.kt +62 -0
- package/src/android/build.gradle +2 -2
- package/src/ios/RGLWConfig.m +9 -2
- package/src/ios/RGLWJSONConstructor.h +19 -0
- package/src/ios/RGLWJSONConstructor.m +349 -0
- package/src/ios/RGLWMain.m +49 -0
- package/www/DocumentReader.js +257 -4
package/src/android/Main.kt
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@file:SuppressLint("MissingPermission")
|
|
2
|
+
@file:Suppress("EnumValuesSoftDeprecate")
|
|
2
3
|
|
|
3
4
|
package com.regula.plugin.documentreader
|
|
4
5
|
|
|
@@ -16,6 +17,7 @@ import com.regula.documentreader.api.DocumentReader.Instance
|
|
|
16
17
|
import com.regula.documentreader.api.completions.IDocumentReaderCompletion
|
|
17
18
|
import com.regula.documentreader.api.completions.IDocumentReaderInitCompletion
|
|
18
19
|
import com.regula.documentreader.api.completions.IDocumentReaderPrepareDbCompletion
|
|
20
|
+
import com.regula.documentreader.api.completions.IVideoEncoderCompletion
|
|
19
21
|
import com.regula.documentreader.api.completions.model.PrepareProgress
|
|
20
22
|
import com.regula.documentreader.api.completions.rfid.IRfidPKDCertificateCompletion
|
|
21
23
|
import com.regula.documentreader.api.completions.rfid.IRfidReaderCompletion
|
|
@@ -29,12 +31,14 @@ import com.regula.documentreader.api.enums.LCID
|
|
|
29
31
|
import com.regula.documentreader.api.enums.eImageQualityCheckType
|
|
30
32
|
import com.regula.documentreader.api.enums.eLDS_ParsingErrorCodes
|
|
31
33
|
import com.regula.documentreader.api.enums.eLDS_ParsingNotificationCodes
|
|
34
|
+
import com.regula.documentreader.api.enums.eMDLDeviceEngagement
|
|
32
35
|
import com.regula.documentreader.api.enums.eRFID_DataFile_Type
|
|
33
36
|
import com.regula.documentreader.api.enums.eRFID_ErrorCodes
|
|
34
37
|
import com.regula.documentreader.api.enums.eVisualFieldType
|
|
35
38
|
import com.regula.documentreader.api.errors.DocReaderRfidException
|
|
36
39
|
import com.regula.documentreader.api.errors.DocumentReaderException
|
|
37
40
|
import com.regula.documentreader.api.internal.core.CoreScenarioUtil
|
|
41
|
+
import com.regula.documentreader.api.params.mdl.DataRetrieval
|
|
38
42
|
import com.regula.documentreader.api.results.DocumentReaderNotification
|
|
39
43
|
import com.regula.documentreader.api.results.DocumentReaderResults
|
|
40
44
|
import com.regula.documentreader.api.results.DocumentReaderResults.fromRawResults
|
|
@@ -44,7 +48,7 @@ import org.json.JSONObject
|
|
|
44
48
|
import com.regula.plugin.documentreader.Convert.toBase64
|
|
45
49
|
import com.regula.plugin.documentreader.Convert.toByteArray
|
|
46
50
|
|
|
47
|
-
fun methodCall(method: String, callback: (Any?) -> Unit): Any
|
|
51
|
+
fun methodCall(method: String, callback: (Any?) -> Unit): Any = when (method) {
|
|
48
52
|
"getDocumentReaderIsReady" -> getDocumentReaderIsReady(callback)
|
|
49
53
|
"getDocumentReaderStatus" -> getDocumentReaderStatus(callback)
|
|
50
54
|
"getRfidSessionStatus" -> getRfidSessionStatus(callback)
|
|
@@ -94,6 +98,13 @@ fun methodCall(method: String, callback: (Any?) -> Unit): Any? = when (method) {
|
|
|
94
98
|
"btDeviceRequestFlashing" -> btDeviceRequestFlashing()
|
|
95
99
|
"btDeviceRequestFlashingFullIR" -> btDeviceRequestFlashingFullIR()
|
|
96
100
|
"btDeviceRequestTurnOffAll" -> btDeviceRequestTurnOffAll()
|
|
101
|
+
"startReadMDl" -> startReadMDl(args(0), args(1), callback)
|
|
102
|
+
"startEngageDevice" -> startEngageDevice(args(0), callback)
|
|
103
|
+
"engageDeviceNFC" -> engageDeviceNFC(callback)
|
|
104
|
+
"engageDeviceData" -> engageDeviceData(args(0), callback)
|
|
105
|
+
"startRetrieveData" -> startRetrieveData(args(0), args(1), callback)
|
|
106
|
+
"retrieveDataNFC" -> retrieveDataNFC(args(0), callback)
|
|
107
|
+
"retrieveDataBLE" -> retrieveDataBLE(args(0), args(1), callback)
|
|
97
108
|
"setLocalizationDictionary" -> setLocalizationDictionary(args(0))
|
|
98
109
|
"getLicense" -> getLicense(callback)
|
|
99
110
|
"getAvailableScenarios" -> getAvailableScenarios(callback)
|
|
@@ -219,12 +230,12 @@ fun checkDatabaseUpdate(callback: Callback, databaseID: String) = Instance().che
|
|
|
219
230
|
@Suppress("DEPRECATION")
|
|
220
231
|
fun scan(config: JSONObject) {
|
|
221
232
|
stopBackgroundRFID()
|
|
222
|
-
Instance().showScanner(
|
|
233
|
+
Instance().showScanner(activity, scannerConfigFromJSON(config), IDocumentReaderCompletion(completion))
|
|
223
234
|
}
|
|
224
235
|
|
|
225
236
|
fun startScanner(config: JSONObject) {
|
|
226
237
|
stopBackgroundRFID()
|
|
227
|
-
Instance().startScanner(
|
|
238
|
+
Instance().startScanner(activity, scannerConfigFromJSON(config), IDocumentReaderCompletion(completion))
|
|
228
239
|
}
|
|
229
240
|
|
|
230
241
|
fun recognize(config: JSONObject) {
|
|
@@ -243,7 +254,7 @@ fun startRFIDReader(onRequestPACertificates: Boolean, onRequestTACertificates: B
|
|
|
243
254
|
onRequestTACertificates,
|
|
244
255
|
onRequestTASignature
|
|
245
256
|
)
|
|
246
|
-
Instance().startRFIDReader(
|
|
257
|
+
Instance().startRFIDReader(activity, rfidReaderCompletion, requestType.getRfidReaderRequest())
|
|
247
258
|
}
|
|
248
259
|
|
|
249
260
|
fun readRFID(onRequestPACertificates: Boolean, onRequestTACertificates: Boolean, onRequestTASignature: Boolean) {
|
|
@@ -252,7 +263,7 @@ fun readRFID(onRequestPACertificates: Boolean, onRequestTACertificates: Boolean,
|
|
|
252
263
|
onRequestTACertificates,
|
|
253
264
|
onRequestTASignature
|
|
254
265
|
)
|
|
255
|
-
startForegroundDispatch()
|
|
266
|
+
startForegroundDispatch("readRFID")
|
|
256
267
|
}
|
|
257
268
|
|
|
258
269
|
fun stopRFIDReader() {
|
|
@@ -286,6 +297,47 @@ fun clearPKDCertificates() = Instance().clearPKDCertificates()
|
|
|
286
297
|
|
|
287
298
|
fun startNewSession() = Instance().startNewSession()
|
|
288
299
|
|
|
300
|
+
fun startReadMDl(type: Int, dataRetrieval: JSONObject, callback: Callback) {
|
|
301
|
+
stopBackgroundRFID()
|
|
302
|
+
Instance().startReadMDL(activity, eMDLDeviceEngagement.values()[type], dataRetrievalFromJSON(dataRetrieval)!!) { v1, v2, v3 -> callback(generateCompletion(v1, v2, v3)) }
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
fun startEngageDevice(type: Int, callback: Callback) {
|
|
306
|
+
stopBackgroundRFID()
|
|
307
|
+
Instance().startEngageDevice(activity, eMDLDeviceEngagement.values()[type]) { v1, v2 -> callback(generateDeviceEngagementCompletion(v1, v2)) }
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
lateinit var engageDeviceNFCCallback: Callback
|
|
311
|
+
fun engageDeviceNFC(callback: Callback) {
|
|
312
|
+
engageDeviceNFCCallback = callback
|
|
313
|
+
stopBackgroundRFID()
|
|
314
|
+
startForegroundDispatch("engageDeviceNFC")
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
fun engageDeviceData(data: String, callback: Callback) {
|
|
318
|
+
stopBackgroundRFID()
|
|
319
|
+
Instance().engageDeviceData(data) { v1, v2 -> callback(generateDeviceEngagementCompletion(v1, v2)) }
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
fun startRetrieveData(dataRetrieval: JSONObject, deviceEngagement: JSONObject, callback: Callback) {
|
|
323
|
+
stopBackgroundRFID()
|
|
324
|
+
Instance().startRetrieveData(activity, deviceEngagementFromJSON(deviceEngagement)!!, dataRetrievalFromJSON(dataRetrieval)!!){ v1, v2, v3 -> callback(generateCompletion(v1, v2, v3)) }
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
lateinit var retrieveDataNFCCallback: Callback
|
|
328
|
+
lateinit var retrieveDataNFCProp: DataRetrieval
|
|
329
|
+
fun retrieveDataNFC(dataRetrieval: JSONObject, callback: Callback) {
|
|
330
|
+
retrieveDataNFCCallback = callback
|
|
331
|
+
retrieveDataNFCProp = dataRetrievalFromJSON(dataRetrieval)!!
|
|
332
|
+
stopBackgroundRFID()
|
|
333
|
+
startForegroundDispatch("retrieveDataNFC")
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
fun retrieveDataBLE(dataRetrieval: JSONObject, deviceEngagement: JSONObject, callback: Callback) {
|
|
337
|
+
stopBackgroundRFID()
|
|
338
|
+
Instance().retrieveDataBLE(context, deviceEngagementFromJSON(deviceEngagement)!!, dataRetrievalFromJSON(dataRetrieval)!!){ v1, v2, v3 -> callback(generateCompletion(v1, v2, v3)) }
|
|
339
|
+
}
|
|
340
|
+
|
|
289
341
|
fun setLocalizationDictionary(dictionary: JSONObject) {
|
|
290
342
|
localizationCallbacks = LocalizationCallbacks { if (dictionary.has(it)) dictionary.getString(it) else null }
|
|
291
343
|
Instance().setLocalizationCallback(localizationCallbacks)
|
|
@@ -476,7 +528,8 @@ fun prepareCompletion(callback: Callback) = object : IDocumentReaderPrepareDbCom
|
|
|
476
528
|
|
|
477
529
|
fun initCompletion(callback: Callback) = IDocumentReaderInitCompletion { success, error ->
|
|
478
530
|
if (success) {
|
|
479
|
-
|
|
531
|
+
videoEncoderCompletion = IVideoEncoderCompletion { _, file -> sendEvent(videoEncoderCompletionEvent, file.path) }
|
|
532
|
+
Instance().setVideoEncoderCompletion(videoEncoderCompletion)
|
|
480
533
|
Instance().setOnClickListener { sendEvent(onCustomButtonTappedEvent, it.tag) }
|
|
481
534
|
}
|
|
482
535
|
callback(generateSuccessCompletion(success, error))
|
|
@@ -525,19 +578,22 @@ var requestType = RfidReaderRequestType(
|
|
|
525
578
|
@Suppress("DEPRECATION", "MissingPermission")
|
|
526
579
|
fun newIntent(intent: Intent): Boolean {
|
|
527
580
|
if (intent.action != NfcAdapter.ACTION_TECH_DISCOVERED) return false
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
rfidReaderCompletion,
|
|
531
|
-
|
|
532
|
-
|
|
581
|
+
val isoDep = IsoDep.get(intent.getParcelableExtra(NfcAdapter.EXTRA_TAG))
|
|
582
|
+
when (nfcFunction) {
|
|
583
|
+
"readRFID" -> Instance().readRFID(isoDep, rfidReaderCompletion, requestType.getRfidReaderRequest())
|
|
584
|
+
"engageDeviceNFC" -> Instance().engageDeviceNFC(isoDep) { v1, v2 -> engageDeviceNFCCallback(generateDeviceEngagementCompletion(v1, v2)) }
|
|
585
|
+
"retrieveDataNFC" -> Instance().retrieveDataNFC(isoDep, retrieveDataNFCProp) { v1, v2, v3 -> retrieveDataNFCCallback(generateCompletion(v1, v2, v3)) }
|
|
586
|
+
}
|
|
533
587
|
return true
|
|
534
588
|
}
|
|
535
589
|
|
|
536
590
|
var backgroundRFIDEnabled = false
|
|
591
|
+
var nfcFunction = ""
|
|
537
592
|
lateinit var lifecycleObserver: LifecycleEventObserver
|
|
538
593
|
|
|
539
|
-
fun startForegroundDispatch() {
|
|
594
|
+
fun startForegroundDispatch(tag: String) {
|
|
540
595
|
backgroundRFIDEnabled = true
|
|
596
|
+
nfcFunction = tag
|
|
541
597
|
val filters: Array<IntentFilter?> = arrayOfNulls(1)
|
|
542
598
|
filters[0] = IntentFilter()
|
|
543
599
|
filters[0]!!.addAction(NfcAdapter.ACTION_TECH_DISCOVERED)
|
|
@@ -577,3 +633,4 @@ fun stopBackgroundRFID() {
|
|
|
577
633
|
|
|
578
634
|
// Weak references
|
|
579
635
|
lateinit var localizationCallbacks: LocalizationCallbacks
|
|
636
|
+
lateinit var videoEncoderCompletion: IVideoEncoderCompletion
|
package/src/android/Utils.kt
CHANGED
|
@@ -12,7 +12,9 @@ import android.util.Base64
|
|
|
12
12
|
import org.json.JSONArray
|
|
13
13
|
import org.json.JSONObject
|
|
14
14
|
import java.io.ByteArrayOutputStream
|
|
15
|
+
import java.lang.reflect.Constructor
|
|
15
16
|
import kotlin.math.sqrt
|
|
17
|
+
import kotlin.reflect.KClass
|
|
16
18
|
|
|
17
19
|
fun List<*>.toJson(): JSONArray {
|
|
18
20
|
val result = JSONArray()
|
|
@@ -105,6 +107,18 @@ fun IntArray?.toJson() = this?.let {
|
|
|
105
107
|
result
|
|
106
108
|
}
|
|
107
109
|
|
|
110
|
+
fun JSONArray.toLongArray(): LongArray {
|
|
111
|
+
val result = LongArray(length())
|
|
112
|
+
for (i in 0 until length()) result[i] = getLong(i)
|
|
113
|
+
return result
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
fun LongArray.toJson(): JSONArray {
|
|
117
|
+
val result = JSONArray()
|
|
118
|
+
for (i in indices) result.put(i, this[i])
|
|
119
|
+
return result
|
|
120
|
+
}
|
|
121
|
+
|
|
108
122
|
fun JSONObject.forEach(action: (String, Any) -> Unit) {
|
|
109
123
|
val keys: Iterator<String> = keys()
|
|
110
124
|
while (keys.hasNext()) {
|
|
@@ -123,6 +137,11 @@ fun JSONObject.getIntOrNull(name: String): Int? {
|
|
|
123
137
|
return null
|
|
124
138
|
}
|
|
125
139
|
|
|
140
|
+
fun JSONObject.getLongOrNull(name: String): Long? {
|
|
141
|
+
if (has(name) && get(name).toString() != "null") return getLong(name)
|
|
142
|
+
return null
|
|
143
|
+
}
|
|
144
|
+
|
|
126
145
|
fun JSONObject.getDoubleOrNull(name: String): Double? {
|
|
127
146
|
if (has(name) && get(name).toString() != "null") return getDouble(name)
|
|
128
147
|
return null
|
|
@@ -138,6 +157,49 @@ fun JSONObject.getStringOrNull(name: String): String? {
|
|
|
138
157
|
return null
|
|
139
158
|
}
|
|
140
159
|
|
|
160
|
+
fun <T : Any> KClass<T>.constructor(vararg argTypes: KClass<*>): Constructor<T> {
|
|
161
|
+
val types = mutableListOf<Class<*>>()
|
|
162
|
+
for (argType in argTypes) types.add(argType.java)
|
|
163
|
+
return java.getDeclaredConstructor(*types.toTypedArray())
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
fun <T : Any> Constructor<T>.instantiate(vararg args: Any?): T {
|
|
167
|
+
isAccessible = true
|
|
168
|
+
return newInstance(*args)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
fun <T : Any> T.setPrivateProperty(varName: String, data: Any?) {
|
|
172
|
+
try {
|
|
173
|
+
setPrivateProperty(javaClass, varName, data)
|
|
174
|
+
} catch (_: java.lang.Exception) {
|
|
175
|
+
try {
|
|
176
|
+
setPrivateProperty(javaClass.superclass!!, varName, data)
|
|
177
|
+
} catch (_: java.lang.Exception) {
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
fun <T : Any> T.setPrivateProperty(clazz: Class<T>, varName: String, data: Any?) = clazz.getDeclaredField(varName).let {
|
|
183
|
+
it.isAccessible = true
|
|
184
|
+
it.set(this, data)
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
fun <T : Any> T.getPrivateProperty(varName: String): Any? {
|
|
188
|
+
var clazz: Class<*>? = this.javaClass
|
|
189
|
+
while (clazz != null) {
|
|
190
|
+
try {
|
|
191
|
+
val field = clazz.getDeclaredField(varName)
|
|
192
|
+
field.isAccessible = true
|
|
193
|
+
return field.get(this)
|
|
194
|
+
} catch (_: NoSuchFieldException) {
|
|
195
|
+
clazz = clazz.superclass
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
throw NoSuchFieldException(
|
|
199
|
+
"Field '$varName' not found in class hierarchy of ${this.javaClass.name}"
|
|
200
|
+
)
|
|
201
|
+
}
|
|
202
|
+
|
|
141
203
|
internal object Convert {
|
|
142
204
|
fun String?.toByteArray(): ByteArray? {
|
|
143
205
|
var str = this ?: return null
|
package/src/android/build.gradle
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
repositories {
|
|
2
2
|
maven {
|
|
3
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
3
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
dependencies {
|
|
8
8
|
//noinspection GradleDependency
|
|
9
|
-
implementation ('com.regula.documentreader:api:8.4.
|
|
9
|
+
implementation ('com.regula.documentreader:api:8.4.12252'){
|
|
10
10
|
transitive = true
|
|
11
11
|
}
|
|
12
12
|
}
|
package/src/ios/RGLWConfig.m
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
functionality.singleResult = [[options valueForKey:@"singleResult"] boolValue];
|
|
36
36
|
if(options[@"torchTurnedOn"]) functionality.torchTurnedOn = [options[@"torchTurnedOn"] boolValue];
|
|
37
37
|
if(options[@"preventScreenRecording"]) functionality.preventScreenRecording = [options[@"preventScreenRecording"] boolValue];
|
|
38
|
+
if(options[@"homeIndicatorAutoHide"]) functionality.homeIndicatorAutoHide = [options[@"homeIndicatorAutoHide"] boolValue];
|
|
38
39
|
|
|
39
40
|
// Int
|
|
40
41
|
if([options valueForKey:@"showCaptureButtonDelayFromDetect"] != nil)
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
// Float
|
|
62
63
|
if([options valueForKey:@"zoomFactor"] != nil)
|
|
63
64
|
functionality.zoomFactor = [[options valueForKey:@"zoomFactor"] floatValue];
|
|
65
|
+
if(options[@"mdlTimeout"]) functionality.mDLTimeout = [options[@"mdlTimeout"] doubleValue];
|
|
64
66
|
|
|
65
67
|
// Custom
|
|
66
68
|
// in android - cameraSize
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
result[@"singleResult"] = [NSNumber numberWithBool:functionality.singleResult];
|
|
91
93
|
result[@"torchTurnedOn"] = @(functionality.torchTurnedOn);
|
|
92
94
|
result[@"preventScreenRecording"] = @(functionality.preventScreenRecording);
|
|
95
|
+
result[@"homeIndicatorAutoHide"] = @(functionality.homeIndicatorAutoHide);
|
|
93
96
|
|
|
94
97
|
// Int
|
|
95
98
|
result[@"showCaptureButtonDelayFromDetect"] = [NSNumber numberWithDouble:functionality.showCaptureButtonDelayFromDetect];
|
|
@@ -107,6 +110,7 @@
|
|
|
107
110
|
|
|
108
111
|
// Float
|
|
109
112
|
result[@"zoomFactor"] = [NSNumber numberWithFloat:functionality.zoomFactor];
|
|
113
|
+
result[@"mdlTimeout"] = @(functionality.mDLTimeout);
|
|
110
114
|
|
|
111
115
|
// Custom
|
|
112
116
|
// in android - cameraSize
|
|
@@ -256,8 +260,8 @@
|
|
|
256
260
|
processParams.documentGroupFilter = [options mutableArrayValueForKey:@"documentGroupFilter"];
|
|
257
261
|
if([options valueForKey:@"lcidIgnoreFilter"] != nil)
|
|
258
262
|
processParams.lcidIgnoreFilter = [options mutableArrayValueForKey:@"lcidIgnoreFilter"];
|
|
259
|
-
if([
|
|
260
|
-
|
|
263
|
+
if (options[@"lcidFilter"]) processParams.lcidFilter = options[@"lcidFilter"];
|
|
264
|
+
if (options[@"fieldTypesIgnoreFilter"]) processParams.fieldTypesIgnoreFilter = options[@"fieldTypesIgnoreFilter"];
|
|
261
265
|
|
|
262
266
|
// JSONObject
|
|
263
267
|
if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
|
|
@@ -357,6 +361,7 @@
|
|
|
357
361
|
result[@"documentGroupFilter"] = processParams.documentGroupFilter;
|
|
358
362
|
result[@"lcidIgnoreFilter"] = processParams.lcidIgnoreFilter;
|
|
359
363
|
result[@"lcidFilter"] = processParams.lcidFilter;
|
|
364
|
+
result[@"fieldTypesIgnoreFilter"] = processParams.fieldTypesIgnoreFilter;
|
|
360
365
|
result[@"mrzFormatsFilter"] = processParams.mrzFormatsFilter;
|
|
361
366
|
result[@"resultTypeOutput"] = processParams.resultTypeOutput;
|
|
362
367
|
|
|
@@ -454,6 +459,7 @@
|
|
|
454
459
|
if(options[@"activityIndicatorPortraitPositionMultiplier"]) customization.activityIndicatorPortraitPositionMultiplier = [options[@"activityIndicatorPortraitPositionMultiplier"] floatValue];
|
|
455
460
|
if(options[@"activityIndicatorLandscapePositionMultiplier"]) customization.activityIndicatorLandscapePositionMultiplier = [options[@"activityIndicatorLandscapePositionMultiplier"] floatValue];
|
|
456
461
|
if(options[@"cameraPreviewVerticalPositionMultiplier"]) customization.previewLayerPositionMultiplier = [options[@"cameraPreviewVerticalPositionMultiplier"] floatValue];
|
|
462
|
+
if(options[@"multipageButtonPositionMultiplier"]) customization.multipageButtonPositionMultiplier = [options[@"multipageButtonPositionMultiplier"] floatValue];
|
|
457
463
|
|
|
458
464
|
// Drawable
|
|
459
465
|
if([options valueForKey:@"multipageAnimationFrontImage"] != nil)
|
|
@@ -568,6 +574,7 @@
|
|
|
568
574
|
result[@"activityIndicatorPortraitPositionMultiplier"] = [NSNumber numberWithFloat:customization.activityIndicatorPortraitPositionMultiplier];
|
|
569
575
|
result[@"activityIndicatorLandscapePositionMultiplier"] = [NSNumber numberWithFloat:customization.activityIndicatorLandscapePositionMultiplier];
|
|
570
576
|
result[@"cameraPreviewVerticalPositionMultiplier"] = [NSNumber numberWithFloat:customization.previewLayerPositionMultiplier];
|
|
577
|
+
result[@"multipageButtonPositionMultiplier"] = [NSNumber numberWithFloat:customization.multipageButtonPositionMultiplier];
|
|
571
578
|
|
|
572
579
|
// Drawable
|
|
573
580
|
result[@"multipageAnimationFrontImage"] = [RGLWJSONConstructor base64WithImage:customization.multipageAnimationFrontImage];
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
+(NSString* _Nullable)generateCompletion:(NSNumber*_Nonnull)action :(RGLDocumentReaderResults*_Nullable)results :(NSError*_Nullable)error;
|
|
21
21
|
+(NSString* _Nonnull)generatePACertificateCompletion:(NSData *_Nullable)serialNumber :(RGLPAResourcesIssuer *_Nullable)issuer;
|
|
22
22
|
+(NSString* _Nullable)generateFinalizePackageCompletion:(NSNumber*_Nonnull)action :(RGLTransactionInfo*_Nullable)info :(NSError*_Nullable)error;
|
|
23
|
+
+(NSString* _Nullable)generateDeviceEngagementCompletion:(RGLDeviceEngagement* _Nullable)deviceEngagement :(NSError* _Nullable)error;
|
|
23
24
|
|
|
24
25
|
+(RGLConfig* _Nullable)configFromJson:(NSDictionary* _Nullable)input;
|
|
25
26
|
+(NSDictionary* _Nullable)generateConfig:(RGLConfig* _Nullable)input;
|
|
@@ -126,6 +127,10 @@
|
|
|
126
127
|
+(NSDictionary* _Nullable)generateBytesData:(RGLBytesData* _Nullable)input;
|
|
127
128
|
+(RGLVDSNCData* _Nullable)vdsncDataFromJson:(NSDictionary* _Nullable)input;
|
|
128
129
|
+(NSDictionary* _Nullable)generateVDSNCData:(RGLVDSNCData* _Nullable)input;
|
|
130
|
+
+(RGLDocFeature* _Nullable)docFeatureFromJson:(NSDictionary* _Nullable)input;
|
|
131
|
+
+(NSDictionary* _Nullable)generateDocFeature:(RGLDocFeature* _Nullable)input;
|
|
132
|
+
+(RGLVDSData* _Nullable)vdsDataFromJson:(NSDictionary* _Nullable)input;
|
|
133
|
+
+(NSDictionary* _Nullable)generateVDSData:(RGLVDSData* _Nullable)input;
|
|
129
134
|
+(RGLOpticalStatus* _Nullable)opticalStatusFromJson:(NSDictionary* _Nullable)input;
|
|
130
135
|
+(NSDictionary* _Nullable)generateOpticalStatus:(RGLOpticalStatus* _Nullable)input;
|
|
131
136
|
+(RGLRFIDSessionDataStatus* _Nullable)rfidSessionDataStatusFromJson:(NSDictionary* _Nullable)input;
|
|
@@ -175,6 +180,20 @@
|
|
|
175
180
|
+(NSDictionary* _Nullable)generateTCCParams:(RGLTCCParams* _Nullable)input;
|
|
176
181
|
+(RGLTransactionInfo* _Nullable)transactionInfoFromJson:(NSDictionary* _Nullable)input;
|
|
177
182
|
+(NSDictionary* _Nullable)generateTransactionInfo:(RGLTransactionInfo* _Nullable)input;
|
|
183
|
+
+(RGLDetailsAge* _Nullable)detailsAgeFromJson:(NSDictionary* _Nullable)input;
|
|
184
|
+
+(NSDictionary* _Nullable)generateDetailsAge:(RGLDetailsAge* _Nullable)input;
|
|
185
|
+
+(RGLDeviceRetrievalMethod* _Nullable)deviceRetrievalMethodFromJson:(NSDictionary* _Nullable)input;
|
|
186
|
+
+(NSDictionary* _Nullable)generateDeviceRetrievalMethod:(RGLDeviceRetrievalMethod* _Nullable)input;
|
|
187
|
+
+(RGLDocumentRequest18013MDL* _Nullable)documentRequest18013MDLFromJson:(NSDictionary* _Nullable)input;
|
|
188
|
+
+(NSDictionary* _Nullable)generateDocumentRequest18013MDL:(RGLDocumentRequest18013MDL* _Nullable)input;
|
|
189
|
+
+(RGLDataRetrieval* _Nullable)dataRetrievalFromJson:(NSDictionary* _Nullable)input;
|
|
190
|
+
+(NSDictionary* _Nullable)generateDataRetrieval:(RGLDataRetrieval* _Nullable)input;
|
|
191
|
+
+(RGLDeviceEngagement* _Nullable)deviceEngagementFromJson:(NSDictionary* _Nullable)input;
|
|
192
|
+
+(NSDictionary* _Nullable)generateDeviceEngagement:(RGLDeviceEngagement* _Nullable)input;
|
|
193
|
+
+(RGLNameSpaceMDL* _Nullable)nameSpaceMDLFromJson:(NSDictionary* _Nullable)input;
|
|
194
|
+
+(NSDictionary* _Nullable)generateNameSpaceMDL:(RGLNameSpaceMDL* _Nullable)input;
|
|
195
|
+
+(RGLDocumentRequestMDL* _Nullable)documentRequestMDLFromJson:(NSDictionary* _Nullable)input;
|
|
196
|
+
+(NSDictionary* _Nullable)generateDocumentRequestMDL:(RGLDocumentRequestMDL* _Nullable)input;
|
|
178
197
|
|
|
179
198
|
@end
|
|
180
199
|
|