@regulaforensics/face-sdk 8.1.920-nightly → 8.1.924-nightly
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/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +4 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +2 -3
- package/examples/capacitor/package-lock.json +128 -128
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/package-lock.json +2246 -1412
- package/examples/ionic/package.json +9 -2
- package/examples/react_native/package-lock.json +84 -84
- package/examples/react_native/package.json +2 -2
- package/ios/Config.swift +6 -3
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +16 -13
- package/www/capacitor/customization/customization_images.js +47 -39
- package/www/capacitor/face_capture/face_capture_config.js +4 -0
- package/www/capacitor/liveness/liveness_config.js +4 -0
- package/www/cordova.js +55 -39
- package/www/react-native/customization/customization_images.js +47 -39
- package/www/react-native/face_capture/face_capture_config.js +4 -0
- package/www/react-native/liveness/liveness_config.js +4 -0
- package/www/types/customization/customization_images.d.ts +1 -0
- package/www/types/face_capture/face_capture_config.d.ts +6 -0
- package/www/types/liveness/liveness_config.d.ts +7 -0
|
@@ -4,116 +4,124 @@ export class CustomizationImages {
|
|
|
4
4
|
_onboardingScreenCloseButton
|
|
5
5
|
set onboardingScreenCloseButton(val) {
|
|
6
6
|
this._onboardingScreenCloseButton = val
|
|
7
|
-
this._set({ "
|
|
7
|
+
this._set({ "onboardingScreenCloseButton": val })
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
_onboardingScreenIllumination
|
|
11
11
|
set onboardingScreenIllumination(val) {
|
|
12
12
|
this._onboardingScreenIllumination = val
|
|
13
|
-
this._set({ "
|
|
13
|
+
this._set({ "onboardingScreenIllumination": val })
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
_onboardingScreenAccessories
|
|
17
17
|
set onboardingScreenAccessories(val) {
|
|
18
18
|
this._onboardingScreenAccessories = val
|
|
19
|
-
this._set({ "
|
|
19
|
+
this._set({ "onboardingScreenAccessories": val })
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
_onboardingScreenCameraLevel
|
|
23
23
|
set onboardingScreenCameraLevel(val) {
|
|
24
24
|
this._onboardingScreenCameraLevel = val
|
|
25
|
-
this._set({ "
|
|
25
|
+
this._set({ "onboardingScreenCameraLevel": val })
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
_cameraScreenCloseButton
|
|
29
29
|
set cameraScreenCloseButton(val) {
|
|
30
30
|
this._cameraScreenCloseButton = val
|
|
31
|
-
this._set({ "
|
|
31
|
+
this._set({ "cameraScreenCloseButton": val })
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
_cameraScreenLightOnButton
|
|
35
35
|
set cameraScreenLightOnButton(val) {
|
|
36
36
|
this._cameraScreenLightOnButton = val
|
|
37
|
-
this._set({ "
|
|
37
|
+
this._set({ "cameraScreenLightOnButton": val })
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
_cameraScreenLightOffButton
|
|
41
41
|
set cameraScreenLightOffButton(val) {
|
|
42
42
|
this._cameraScreenLightOffButton = val
|
|
43
|
-
this._set({ "
|
|
43
|
+
this._set({ "cameraScreenLightOffButton": val })
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
_cameraScreenSwitchButton
|
|
47
47
|
set cameraScreenSwitchButton(val) {
|
|
48
48
|
this._cameraScreenSwitchButton = val
|
|
49
|
-
this._set({ "
|
|
49
|
+
this._set({ "cameraScreenSwitchButton": val })
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
_retryScreenCloseButton
|
|
53
53
|
set retryScreenCloseButton(val) {
|
|
54
54
|
this._retryScreenCloseButton = val
|
|
55
|
-
this._set({ "
|
|
55
|
+
this._set({ "retryScreenCloseButton": val })
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
_retryScreenHintEnvironment
|
|
59
59
|
set retryScreenHintEnvironment(val) {
|
|
60
60
|
this._retryScreenHintEnvironment = val
|
|
61
|
-
this._set({ "
|
|
61
|
+
this._set({ "retryScreenHintEnvironment": val })
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
_retryScreenHintSubject
|
|
65
65
|
set retryScreenHintSubject(val) {
|
|
66
66
|
this._retryScreenHintSubject = val
|
|
67
|
-
this._set({ "
|
|
67
|
+
this._set({ "retryScreenHintSubject": val })
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
_retryScreenHintGeo
|
|
71
|
+
set retryScreenHintGeo(val) {
|
|
72
|
+
this._retryScreenHintGeo = val
|
|
73
|
+
this._set({ "retryScreenHintGeo": val })
|
|
68
74
|
}
|
|
69
75
|
|
|
70
76
|
_processingScreenCloseButton
|
|
71
77
|
set processingScreenCloseButton(val) {
|
|
72
78
|
this._processingScreenCloseButton = val
|
|
73
|
-
this._set({ "
|
|
79
|
+
this._set({ "processingScreenCloseButton": val })
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
_successScreenImage
|
|
77
83
|
set successScreenImage(val) {
|
|
78
84
|
this._successScreenImage = val
|
|
79
|
-
this._set({ "
|
|
85
|
+
this._set({ "successScreenImage": val })
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
static fromJson(jsonObject) {
|
|
83
89
|
var result = new CustomizationImages()
|
|
84
90
|
|
|
85
|
-
result._onboardingScreenCloseButton = jsonObject["
|
|
86
|
-
result._onboardingScreenIllumination = jsonObject["
|
|
87
|
-
result._onboardingScreenAccessories = jsonObject["
|
|
88
|
-
result._onboardingScreenCameraLevel = jsonObject["
|
|
89
|
-
result._cameraScreenCloseButton = jsonObject["
|
|
90
|
-
result._cameraScreenLightOnButton = jsonObject["
|
|
91
|
-
result._cameraScreenLightOffButton = jsonObject["
|
|
92
|
-
result._cameraScreenSwitchButton = jsonObject["
|
|
93
|
-
result._retryScreenCloseButton = jsonObject["
|
|
94
|
-
result._retryScreenHintEnvironment = jsonObject["
|
|
95
|
-
result._retryScreenHintSubject = jsonObject["
|
|
96
|
-
result.
|
|
97
|
-
result.
|
|
91
|
+
result._onboardingScreenCloseButton = jsonObject["onboardingScreenCloseButton"]
|
|
92
|
+
result._onboardingScreenIllumination = jsonObject["onboardingScreenIllumination"]
|
|
93
|
+
result._onboardingScreenAccessories = jsonObject["onboardingScreenAccessories"]
|
|
94
|
+
result._onboardingScreenCameraLevel = jsonObject["onboardingScreenCameraLevel"]
|
|
95
|
+
result._cameraScreenCloseButton = jsonObject["cameraScreenCloseButton"]
|
|
96
|
+
result._cameraScreenLightOnButton = jsonObject["cameraScreenLightOnButton"]
|
|
97
|
+
result._cameraScreenLightOffButton = jsonObject["cameraScreenLightOffButton"]
|
|
98
|
+
result._cameraScreenSwitchButton = jsonObject["cameraScreenSwitchButton"]
|
|
99
|
+
result._retryScreenCloseButton = jsonObject["retryScreenCloseButton"]
|
|
100
|
+
result._retryScreenHintEnvironment = jsonObject["retryScreenHintEnvironment"]
|
|
101
|
+
result._retryScreenHintSubject = jsonObject["retryScreenHintSubject"]
|
|
102
|
+
result._retryScreenHintGeo = jsonObject["retryScreenHintGeo"]
|
|
103
|
+
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
104
|
+
result._successScreenImage = jsonObject["successScreenImage"]
|
|
98
105
|
|
|
99
106
|
return result
|
|
100
107
|
}
|
|
101
108
|
|
|
102
109
|
toJson() {
|
|
103
110
|
return {
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
111
|
+
"onboardingScreenCloseButton": this._onboardingScreenCloseButton,
|
|
112
|
+
"onboardingScreenIllumination": this._onboardingScreenIllumination,
|
|
113
|
+
"onboardingScreenAccessories": this._onboardingScreenAccessories,
|
|
114
|
+
"onboardingScreenCameraLevel": this._onboardingScreenCameraLevel,
|
|
115
|
+
"cameraScreenCloseButton": this._cameraScreenCloseButton,
|
|
116
|
+
"cameraScreenLightOnButton": this._cameraScreenLightOnButton,
|
|
117
|
+
"cameraScreenLightOffButton": this._cameraScreenLightOffButton,
|
|
118
|
+
"cameraScreenSwitchButton": this._cameraScreenSwitchButton,
|
|
119
|
+
"retryScreenCloseButton": this._retryScreenCloseButton,
|
|
120
|
+
"retryScreenHintEnvironment": this._retryScreenHintEnvironment,
|
|
121
|
+
"retryScreenHintSubject": this._retryScreenHintSubject,
|
|
122
|
+
"retryScreenHintGeo": this._retryScreenHintGeo,
|
|
123
|
+
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
124
|
+
"successScreenImage": this._successScreenImage,
|
|
117
125
|
}
|
|
118
126
|
}
|
|
119
127
|
|
|
@@ -9,6 +9,7 @@ export class FaceCaptureConfig {
|
|
|
9
9
|
vibrateOnSteps
|
|
10
10
|
detectOcclusion
|
|
11
11
|
showFaceAnimation
|
|
12
|
+
preventScreenRecording
|
|
12
13
|
cameraPositionIOS
|
|
13
14
|
cameraPositionAndroid
|
|
14
15
|
screenOrientation
|
|
@@ -23,6 +24,7 @@ export class FaceCaptureConfig {
|
|
|
23
24
|
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
24
25
|
this.detectOcclusion = params?.detectOcclusion ?? true
|
|
25
26
|
this.showFaceAnimation = params?.showFaceAnimation ?? true
|
|
27
|
+
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
26
28
|
this.cameraPositionIOS = params?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
27
29
|
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
28
30
|
this.screenOrientation = params?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
@@ -41,6 +43,7 @@ export class FaceCaptureConfig {
|
|
|
41
43
|
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
42
44
|
result.detectOcclusion = jsonObject["detectOcclusion"]
|
|
43
45
|
result.showFaceAnimation = jsonObject["showFaceAnimation"]
|
|
46
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
44
47
|
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
45
48
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
46
49
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
@@ -59,6 +62,7 @@ export class FaceCaptureConfig {
|
|
|
59
62
|
"vibrateOnSteps": this.vibrateOnSteps,
|
|
60
63
|
"detectOcclusion": this.detectOcclusion,
|
|
61
64
|
"showFaceAnimation": this.showFaceAnimation,
|
|
65
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
62
66
|
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
63
67
|
"cameraPositionIOS": this.cameraPositionIOS,
|
|
64
68
|
"screenOrientation": this.screenOrientation,
|
|
@@ -11,6 +11,7 @@ export class LivenessConfig {
|
|
|
11
11
|
cameraPositionAndroid
|
|
12
12
|
screenOrientation
|
|
13
13
|
locationTrackingEnabled
|
|
14
|
+
preventScreenRecording
|
|
14
15
|
attemptsCount
|
|
15
16
|
recordingProcess
|
|
16
17
|
livenessType
|
|
@@ -28,6 +29,7 @@ export class LivenessConfig {
|
|
|
28
29
|
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
29
30
|
this.screenOrientation = params?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
30
31
|
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
32
|
+
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
31
33
|
this.attemptsCount = params?.attemptsCount ?? 0
|
|
32
34
|
this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
33
35
|
this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -49,6 +51,7 @@ export class LivenessConfig {
|
|
|
49
51
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
50
52
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
51
53
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
54
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
52
55
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
53
56
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
54
57
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -70,6 +73,7 @@ export class LivenessConfig {
|
|
|
70
73
|
"cameraPositionIOS": this.cameraPositionIOS,
|
|
71
74
|
"screenOrientation": this.screenOrientation,
|
|
72
75
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
76
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
73
77
|
"attemptsCount": this.attemptsCount,
|
|
74
78
|
"recordingProcess": this.recordingProcess,
|
|
75
79
|
"livenessType": this.livenessType,
|
package/www/cordova.js
CHANGED
|
@@ -488,116 +488,124 @@ class CustomizationImages {
|
|
|
488
488
|
_onboardingScreenCloseButton
|
|
489
489
|
set onboardingScreenCloseButton(val) {
|
|
490
490
|
this._onboardingScreenCloseButton = val
|
|
491
|
-
this._set({ "
|
|
491
|
+
this._set({ "onboardingScreenCloseButton": val })
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
_onboardingScreenIllumination
|
|
495
495
|
set onboardingScreenIllumination(val) {
|
|
496
496
|
this._onboardingScreenIllumination = val
|
|
497
|
-
this._set({ "
|
|
497
|
+
this._set({ "onboardingScreenIllumination": val })
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
_onboardingScreenAccessories
|
|
501
501
|
set onboardingScreenAccessories(val) {
|
|
502
502
|
this._onboardingScreenAccessories = val
|
|
503
|
-
this._set({ "
|
|
503
|
+
this._set({ "onboardingScreenAccessories": val })
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
_onboardingScreenCameraLevel
|
|
507
507
|
set onboardingScreenCameraLevel(val) {
|
|
508
508
|
this._onboardingScreenCameraLevel = val
|
|
509
|
-
this._set({ "
|
|
509
|
+
this._set({ "onboardingScreenCameraLevel": val })
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
_cameraScreenCloseButton
|
|
513
513
|
set cameraScreenCloseButton(val) {
|
|
514
514
|
this._cameraScreenCloseButton = val
|
|
515
|
-
this._set({ "
|
|
515
|
+
this._set({ "cameraScreenCloseButton": val })
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
_cameraScreenLightOnButton
|
|
519
519
|
set cameraScreenLightOnButton(val) {
|
|
520
520
|
this._cameraScreenLightOnButton = val
|
|
521
|
-
this._set({ "
|
|
521
|
+
this._set({ "cameraScreenLightOnButton": val })
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
_cameraScreenLightOffButton
|
|
525
525
|
set cameraScreenLightOffButton(val) {
|
|
526
526
|
this._cameraScreenLightOffButton = val
|
|
527
|
-
this._set({ "
|
|
527
|
+
this._set({ "cameraScreenLightOffButton": val })
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
_cameraScreenSwitchButton
|
|
531
531
|
set cameraScreenSwitchButton(val) {
|
|
532
532
|
this._cameraScreenSwitchButton = val
|
|
533
|
-
this._set({ "
|
|
533
|
+
this._set({ "cameraScreenSwitchButton": val })
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
_retryScreenCloseButton
|
|
537
537
|
set retryScreenCloseButton(val) {
|
|
538
538
|
this._retryScreenCloseButton = val
|
|
539
|
-
this._set({ "
|
|
539
|
+
this._set({ "retryScreenCloseButton": val })
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
_retryScreenHintEnvironment
|
|
543
543
|
set retryScreenHintEnvironment(val) {
|
|
544
544
|
this._retryScreenHintEnvironment = val
|
|
545
|
-
this._set({ "
|
|
545
|
+
this._set({ "retryScreenHintEnvironment": val })
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
_retryScreenHintSubject
|
|
549
549
|
set retryScreenHintSubject(val) {
|
|
550
550
|
this._retryScreenHintSubject = val
|
|
551
|
-
this._set({ "
|
|
551
|
+
this._set({ "retryScreenHintSubject": val })
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
_retryScreenHintGeo
|
|
555
|
+
set retryScreenHintGeo(val) {
|
|
556
|
+
this._retryScreenHintGeo = val
|
|
557
|
+
this._set({ "retryScreenHintGeo": val })
|
|
552
558
|
}
|
|
553
559
|
|
|
554
560
|
_processingScreenCloseButton
|
|
555
561
|
set processingScreenCloseButton(val) {
|
|
556
562
|
this._processingScreenCloseButton = val
|
|
557
|
-
this._set({ "
|
|
563
|
+
this._set({ "processingScreenCloseButton": val })
|
|
558
564
|
}
|
|
559
565
|
|
|
560
566
|
_successScreenImage
|
|
561
567
|
set successScreenImage(val) {
|
|
562
568
|
this._successScreenImage = val
|
|
563
|
-
this._set({ "
|
|
569
|
+
this._set({ "successScreenImage": val })
|
|
564
570
|
}
|
|
565
571
|
|
|
566
572
|
static fromJson(jsonObject) {
|
|
567
573
|
var result = new CustomizationImages()
|
|
568
574
|
|
|
569
|
-
result._onboardingScreenCloseButton = jsonObject["
|
|
570
|
-
result._onboardingScreenIllumination = jsonObject["
|
|
571
|
-
result._onboardingScreenAccessories = jsonObject["
|
|
572
|
-
result._onboardingScreenCameraLevel = jsonObject["
|
|
573
|
-
result._cameraScreenCloseButton = jsonObject["
|
|
574
|
-
result._cameraScreenLightOnButton = jsonObject["
|
|
575
|
-
result._cameraScreenLightOffButton = jsonObject["
|
|
576
|
-
result._cameraScreenSwitchButton = jsonObject["
|
|
577
|
-
result._retryScreenCloseButton = jsonObject["
|
|
578
|
-
result._retryScreenHintEnvironment = jsonObject["
|
|
579
|
-
result._retryScreenHintSubject = jsonObject["
|
|
580
|
-
result.
|
|
581
|
-
result.
|
|
575
|
+
result._onboardingScreenCloseButton = jsonObject["onboardingScreenCloseButton"]
|
|
576
|
+
result._onboardingScreenIllumination = jsonObject["onboardingScreenIllumination"]
|
|
577
|
+
result._onboardingScreenAccessories = jsonObject["onboardingScreenAccessories"]
|
|
578
|
+
result._onboardingScreenCameraLevel = jsonObject["onboardingScreenCameraLevel"]
|
|
579
|
+
result._cameraScreenCloseButton = jsonObject["cameraScreenCloseButton"]
|
|
580
|
+
result._cameraScreenLightOnButton = jsonObject["cameraScreenLightOnButton"]
|
|
581
|
+
result._cameraScreenLightOffButton = jsonObject["cameraScreenLightOffButton"]
|
|
582
|
+
result._cameraScreenSwitchButton = jsonObject["cameraScreenSwitchButton"]
|
|
583
|
+
result._retryScreenCloseButton = jsonObject["retryScreenCloseButton"]
|
|
584
|
+
result._retryScreenHintEnvironment = jsonObject["retryScreenHintEnvironment"]
|
|
585
|
+
result._retryScreenHintSubject = jsonObject["retryScreenHintSubject"]
|
|
586
|
+
result._retryScreenHintGeo = jsonObject["retryScreenHintGeo"]
|
|
587
|
+
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
588
|
+
result._successScreenImage = jsonObject["successScreenImage"]
|
|
582
589
|
|
|
583
590
|
return result
|
|
584
591
|
}
|
|
585
592
|
|
|
586
593
|
toJson() {
|
|
587
594
|
return {
|
|
588
|
-
"
|
|
589
|
-
"
|
|
590
|
-
"
|
|
591
|
-
"
|
|
592
|
-
"
|
|
593
|
-
"
|
|
594
|
-
"
|
|
595
|
-
"
|
|
596
|
-
"
|
|
597
|
-
"
|
|
598
|
-
"
|
|
599
|
-
"
|
|
600
|
-
"
|
|
595
|
+
"onboardingScreenCloseButton": this._onboardingScreenCloseButton,
|
|
596
|
+
"onboardingScreenIllumination": this._onboardingScreenIllumination,
|
|
597
|
+
"onboardingScreenAccessories": this._onboardingScreenAccessories,
|
|
598
|
+
"onboardingScreenCameraLevel": this._onboardingScreenCameraLevel,
|
|
599
|
+
"cameraScreenCloseButton": this._cameraScreenCloseButton,
|
|
600
|
+
"cameraScreenLightOnButton": this._cameraScreenLightOnButton,
|
|
601
|
+
"cameraScreenLightOffButton": this._cameraScreenLightOffButton,
|
|
602
|
+
"cameraScreenSwitchButton": this._cameraScreenSwitchButton,
|
|
603
|
+
"retryScreenCloseButton": this._retryScreenCloseButton,
|
|
604
|
+
"retryScreenHintEnvironment": this._retryScreenHintEnvironment,
|
|
605
|
+
"retryScreenHintSubject": this._retryScreenHintSubject,
|
|
606
|
+
"retryScreenHintGeo": this._retryScreenHintGeo,
|
|
607
|
+
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
608
|
+
"successScreenImage": this._successScreenImage,
|
|
601
609
|
}
|
|
602
610
|
}
|
|
603
611
|
|
|
@@ -1182,6 +1190,7 @@ class FaceCaptureConfig {
|
|
|
1182
1190
|
vibrateOnSteps
|
|
1183
1191
|
detectOcclusion
|
|
1184
1192
|
showFaceAnimation
|
|
1193
|
+
preventScreenRecording
|
|
1185
1194
|
cameraPositionIOS
|
|
1186
1195
|
cameraPositionAndroid
|
|
1187
1196
|
screenOrientation
|
|
@@ -1196,6 +1205,7 @@ class FaceCaptureConfig {
|
|
|
1196
1205
|
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
1197
1206
|
this.detectOcclusion = params?.detectOcclusion ?? true
|
|
1198
1207
|
this.showFaceAnimation = params?.showFaceAnimation ?? true
|
|
1208
|
+
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
1199
1209
|
this.cameraPositionIOS = params?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
1200
1210
|
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
1201
1211
|
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
@@ -1214,6 +1224,7 @@ class FaceCaptureConfig {
|
|
|
1214
1224
|
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
1215
1225
|
result.detectOcclusion = jsonObject["detectOcclusion"]
|
|
1216
1226
|
result.showFaceAnimation = jsonObject["showFaceAnimation"]
|
|
1227
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
1217
1228
|
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
1218
1229
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
1219
1230
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
@@ -1232,6 +1243,7 @@ class FaceCaptureConfig {
|
|
|
1232
1243
|
"vibrateOnSteps": this.vibrateOnSteps,
|
|
1233
1244
|
"detectOcclusion": this.detectOcclusion,
|
|
1234
1245
|
"showFaceAnimation": this.showFaceAnimation,
|
|
1246
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
1235
1247
|
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
1236
1248
|
"cameraPositionIOS": this.cameraPositionIOS,
|
|
1237
1249
|
"screenOrientation": this.screenOrientation,
|
|
@@ -3008,6 +3020,7 @@ class LivenessConfig {
|
|
|
3008
3020
|
cameraPositionAndroid
|
|
3009
3021
|
screenOrientation
|
|
3010
3022
|
locationTrackingEnabled
|
|
3023
|
+
preventScreenRecording
|
|
3011
3024
|
attemptsCount
|
|
3012
3025
|
recordingProcess
|
|
3013
3026
|
livenessType
|
|
@@ -3025,6 +3038,7 @@ class LivenessConfig {
|
|
|
3025
3038
|
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
3026
3039
|
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3027
3040
|
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
3041
|
+
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
3028
3042
|
this.attemptsCount = params?.attemptsCount ?? 0
|
|
3029
3043
|
this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3030
3044
|
this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -3046,6 +3060,7 @@ class LivenessConfig {
|
|
|
3046
3060
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
3047
3061
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
3048
3062
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
3063
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
3049
3064
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
3050
3065
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
3051
3066
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -3067,6 +3082,7 @@ class LivenessConfig {
|
|
|
3067
3082
|
"cameraPositionIOS": this.cameraPositionIOS,
|
|
3068
3083
|
"screenOrientation": this.screenOrientation,
|
|
3069
3084
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
3085
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
3070
3086
|
"attemptsCount": this.attemptsCount,
|
|
3071
3087
|
"recordingProcess": this.recordingProcess,
|
|
3072
3088
|
"livenessType": this.livenessType,
|
|
@@ -4,116 +4,124 @@ export class CustomizationImages {
|
|
|
4
4
|
_onboardingScreenCloseButton
|
|
5
5
|
set onboardingScreenCloseButton(val) {
|
|
6
6
|
this._onboardingScreenCloseButton = val
|
|
7
|
-
this._set({ "
|
|
7
|
+
this._set({ "onboardingScreenCloseButton": val })
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
_onboardingScreenIllumination
|
|
11
11
|
set onboardingScreenIllumination(val) {
|
|
12
12
|
this._onboardingScreenIllumination = val
|
|
13
|
-
this._set({ "
|
|
13
|
+
this._set({ "onboardingScreenIllumination": val })
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
_onboardingScreenAccessories
|
|
17
17
|
set onboardingScreenAccessories(val) {
|
|
18
18
|
this._onboardingScreenAccessories = val
|
|
19
|
-
this._set({ "
|
|
19
|
+
this._set({ "onboardingScreenAccessories": val })
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
_onboardingScreenCameraLevel
|
|
23
23
|
set onboardingScreenCameraLevel(val) {
|
|
24
24
|
this._onboardingScreenCameraLevel = val
|
|
25
|
-
this._set({ "
|
|
25
|
+
this._set({ "onboardingScreenCameraLevel": val })
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
_cameraScreenCloseButton
|
|
29
29
|
set cameraScreenCloseButton(val) {
|
|
30
30
|
this._cameraScreenCloseButton = val
|
|
31
|
-
this._set({ "
|
|
31
|
+
this._set({ "cameraScreenCloseButton": val })
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
_cameraScreenLightOnButton
|
|
35
35
|
set cameraScreenLightOnButton(val) {
|
|
36
36
|
this._cameraScreenLightOnButton = val
|
|
37
|
-
this._set({ "
|
|
37
|
+
this._set({ "cameraScreenLightOnButton": val })
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
_cameraScreenLightOffButton
|
|
41
41
|
set cameraScreenLightOffButton(val) {
|
|
42
42
|
this._cameraScreenLightOffButton = val
|
|
43
|
-
this._set({ "
|
|
43
|
+
this._set({ "cameraScreenLightOffButton": val })
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
_cameraScreenSwitchButton
|
|
47
47
|
set cameraScreenSwitchButton(val) {
|
|
48
48
|
this._cameraScreenSwitchButton = val
|
|
49
|
-
this._set({ "
|
|
49
|
+
this._set({ "cameraScreenSwitchButton": val })
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
_retryScreenCloseButton
|
|
53
53
|
set retryScreenCloseButton(val) {
|
|
54
54
|
this._retryScreenCloseButton = val
|
|
55
|
-
this._set({ "
|
|
55
|
+
this._set({ "retryScreenCloseButton": val })
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
_retryScreenHintEnvironment
|
|
59
59
|
set retryScreenHintEnvironment(val) {
|
|
60
60
|
this._retryScreenHintEnvironment = val
|
|
61
|
-
this._set({ "
|
|
61
|
+
this._set({ "retryScreenHintEnvironment": val })
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
_retryScreenHintSubject
|
|
65
65
|
set retryScreenHintSubject(val) {
|
|
66
66
|
this._retryScreenHintSubject = val
|
|
67
|
-
this._set({ "
|
|
67
|
+
this._set({ "retryScreenHintSubject": val })
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
_retryScreenHintGeo
|
|
71
|
+
set retryScreenHintGeo(val) {
|
|
72
|
+
this._retryScreenHintGeo = val
|
|
73
|
+
this._set({ "retryScreenHintGeo": val })
|
|
68
74
|
}
|
|
69
75
|
|
|
70
76
|
_processingScreenCloseButton
|
|
71
77
|
set processingScreenCloseButton(val) {
|
|
72
78
|
this._processingScreenCloseButton = val
|
|
73
|
-
this._set({ "
|
|
79
|
+
this._set({ "processingScreenCloseButton": val })
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
_successScreenImage
|
|
77
83
|
set successScreenImage(val) {
|
|
78
84
|
this._successScreenImage = val
|
|
79
|
-
this._set({ "
|
|
85
|
+
this._set({ "successScreenImage": val })
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
static fromJson(jsonObject) {
|
|
83
89
|
var result = new CustomizationImages()
|
|
84
90
|
|
|
85
|
-
result._onboardingScreenCloseButton = jsonObject["
|
|
86
|
-
result._onboardingScreenIllumination = jsonObject["
|
|
87
|
-
result._onboardingScreenAccessories = jsonObject["
|
|
88
|
-
result._onboardingScreenCameraLevel = jsonObject["
|
|
89
|
-
result._cameraScreenCloseButton = jsonObject["
|
|
90
|
-
result._cameraScreenLightOnButton = jsonObject["
|
|
91
|
-
result._cameraScreenLightOffButton = jsonObject["
|
|
92
|
-
result._cameraScreenSwitchButton = jsonObject["
|
|
93
|
-
result._retryScreenCloseButton = jsonObject["
|
|
94
|
-
result._retryScreenHintEnvironment = jsonObject["
|
|
95
|
-
result._retryScreenHintSubject = jsonObject["
|
|
96
|
-
result.
|
|
97
|
-
result.
|
|
91
|
+
result._onboardingScreenCloseButton = jsonObject["onboardingScreenCloseButton"]
|
|
92
|
+
result._onboardingScreenIllumination = jsonObject["onboardingScreenIllumination"]
|
|
93
|
+
result._onboardingScreenAccessories = jsonObject["onboardingScreenAccessories"]
|
|
94
|
+
result._onboardingScreenCameraLevel = jsonObject["onboardingScreenCameraLevel"]
|
|
95
|
+
result._cameraScreenCloseButton = jsonObject["cameraScreenCloseButton"]
|
|
96
|
+
result._cameraScreenLightOnButton = jsonObject["cameraScreenLightOnButton"]
|
|
97
|
+
result._cameraScreenLightOffButton = jsonObject["cameraScreenLightOffButton"]
|
|
98
|
+
result._cameraScreenSwitchButton = jsonObject["cameraScreenSwitchButton"]
|
|
99
|
+
result._retryScreenCloseButton = jsonObject["retryScreenCloseButton"]
|
|
100
|
+
result._retryScreenHintEnvironment = jsonObject["retryScreenHintEnvironment"]
|
|
101
|
+
result._retryScreenHintSubject = jsonObject["retryScreenHintSubject"]
|
|
102
|
+
result._retryScreenHintGeo = jsonObject["retryScreenHintGeo"]
|
|
103
|
+
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
104
|
+
result._successScreenImage = jsonObject["successScreenImage"]
|
|
98
105
|
|
|
99
106
|
return result
|
|
100
107
|
}
|
|
101
108
|
|
|
102
109
|
toJson() {
|
|
103
110
|
return {
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
111
|
+
"onboardingScreenCloseButton": this._onboardingScreenCloseButton,
|
|
112
|
+
"onboardingScreenIllumination": this._onboardingScreenIllumination,
|
|
113
|
+
"onboardingScreenAccessories": this._onboardingScreenAccessories,
|
|
114
|
+
"onboardingScreenCameraLevel": this._onboardingScreenCameraLevel,
|
|
115
|
+
"cameraScreenCloseButton": this._cameraScreenCloseButton,
|
|
116
|
+
"cameraScreenLightOnButton": this._cameraScreenLightOnButton,
|
|
117
|
+
"cameraScreenLightOffButton": this._cameraScreenLightOffButton,
|
|
118
|
+
"cameraScreenSwitchButton": this._cameraScreenSwitchButton,
|
|
119
|
+
"retryScreenCloseButton": this._retryScreenCloseButton,
|
|
120
|
+
"retryScreenHintEnvironment": this._retryScreenHintEnvironment,
|
|
121
|
+
"retryScreenHintSubject": this._retryScreenHintSubject,
|
|
122
|
+
"retryScreenHintGeo": this._retryScreenHintGeo,
|
|
123
|
+
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
124
|
+
"successScreenImage": this._successScreenImage,
|
|
117
125
|
}
|
|
118
126
|
}
|
|
119
127
|
|
|
@@ -9,6 +9,7 @@ export class FaceCaptureConfig {
|
|
|
9
9
|
vibrateOnSteps
|
|
10
10
|
detectOcclusion
|
|
11
11
|
showFaceAnimation
|
|
12
|
+
preventScreenRecording
|
|
12
13
|
cameraPositionIOS
|
|
13
14
|
cameraPositionAndroid
|
|
14
15
|
screenOrientation
|
|
@@ -23,6 +24,7 @@ export class FaceCaptureConfig {
|
|
|
23
24
|
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
24
25
|
this.detectOcclusion = params?.detectOcclusion ?? true
|
|
25
26
|
this.showFaceAnimation = params?.showFaceAnimation ?? true
|
|
27
|
+
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
26
28
|
this.cameraPositionIOS = params?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
27
29
|
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
28
30
|
this.screenOrientation = params?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
@@ -41,6 +43,7 @@ export class FaceCaptureConfig {
|
|
|
41
43
|
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
42
44
|
result.detectOcclusion = jsonObject["detectOcclusion"]
|
|
43
45
|
result.showFaceAnimation = jsonObject["showFaceAnimation"]
|
|
46
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
44
47
|
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
45
48
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
46
49
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
@@ -59,6 +62,7 @@ export class FaceCaptureConfig {
|
|
|
59
62
|
"vibrateOnSteps": this.vibrateOnSteps,
|
|
60
63
|
"detectOcclusion": this.detectOcclusion,
|
|
61
64
|
"showFaceAnimation": this.showFaceAnimation,
|
|
65
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
62
66
|
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
63
67
|
"cameraPositionIOS": this.cameraPositionIOS,
|
|
64
68
|
"screenOrientation": this.screenOrientation,
|