@regulaforensics/cordova-plugin-document-reader-api 6.7.5 → 6.8.1
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/config.xml +3 -4
- package/example/package.json +8 -12
- package/example/www/index.html +105 -105
- package/example/www/js/index.js +30 -22
- package/package.json +1 -1
- package/plugin.xml +7 -7
- package/src/android/DocumentReader.java +30 -0
- package/src/android/JSONConstructor.java +2 -0
- package/src/android/RegulaConfig.java +26 -0
- package/src/android/build.gradle +1 -1
- package/src/ios/RGLWDocumentReader.h +25 -0
- package/src/ios/{RGLDocumentReader.m → RGLWDocumentReader.m} +172 -147
- package/src/ios/RGLWJSONConstructor.h +1 -0
- package/src/ios/RGLWJSONConstructor.m +7 -0
- package/src/ios/{RegulaConfig.h → RGLWRegulaConfig.h} +3 -3
- package/src/ios/{RegulaConfig.m → RGLWRegulaConfig.m} +26 -4
- package/www/DocumentReader.js +118 -10
- package/src/ios/RGLDocumentReader.h +0 -19
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@interface RGLWJSONConstructor : NSObject
|
|
9
9
|
+(NSString* _Nonnull)dictToString:(NSMutableDictionary* _Nonnull)input;
|
|
10
|
+
+(NSString* _Nonnull)arrayToString:(NSMutableArray* _Nonnull)input;
|
|
10
11
|
+(NSMutableDictionary* _Nonnull)generateRfidNotificationCompletion:(NSInteger)notification;
|
|
11
12
|
+(NSMutableDictionary* _Nonnull)generateRfidNotificationCompletionWithError:(NSInteger)notification : (NSInteger)value;
|
|
12
13
|
+(NSMutableDictionary* _Nonnull)generateNSDictionary:(NSDictionary<NSNumber*, NSNumber*>* _Nullable)input;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#import <Foundation/Foundation.h>
|
|
2
2
|
#import "RGLWJSONConstructor.h"
|
|
3
|
+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
3
4
|
|
|
4
5
|
@implementation RGLWJSONConstructor
|
|
5
6
|
|
|
@@ -7,6 +8,10 @@
|
|
|
7
8
|
return [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:input options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding];
|
|
8
9
|
}
|
|
9
10
|
|
|
11
|
+
+(NSString*)arrayToString:(NSMutableArray*)input {
|
|
12
|
+
return [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:input options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding];
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
+(NSMutableDictionary* _Nonnull)generateNSDictionary:(NSDictionary<NSNumber*, NSNumber*>* _Nullable)input {
|
|
11
16
|
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
12
17
|
if(input == nil) return result;
|
|
@@ -504,6 +509,7 @@
|
|
|
504
509
|
result[@"lightType"] = @(input.lightType);
|
|
505
510
|
result[@"lightName"] = input.lightName;
|
|
506
511
|
result[@"pageIndex"] = @(input.pageIndex);
|
|
512
|
+
result[@"originalPageIndex"] = @(input.originalPageIndex);
|
|
507
513
|
|
|
508
514
|
return result;
|
|
509
515
|
}
|
|
@@ -610,6 +616,7 @@
|
|
|
610
616
|
result[@"dType"] = @(input.dType);
|
|
611
617
|
result[@"dFormat"] = @(input.dFormat);
|
|
612
618
|
result[@"dMRZ"] = @(input.dMRZ);
|
|
619
|
+
result[@"isDeprecated"] = @(input.isDeprecated);
|
|
613
620
|
result[@"dDescription"] = input.dDescription;
|
|
614
621
|
result[@"dYear"] = input.dYear;
|
|
615
622
|
result[@"dCountryName"] = input.dCountryName;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#ifndef
|
|
2
|
-
#define
|
|
1
|
+
#ifndef RGLWRegulaConfig_h
|
|
2
|
+
#define RGLWRegulaConfig_h
|
|
3
3
|
#import <DocumentReader/DocumentReader.h>
|
|
4
4
|
@import CoreGraphics;
|
|
5
5
|
@import UIKit;
|
|
6
6
|
@import AVFoundation;
|
|
7
7
|
|
|
8
|
-
@interface
|
|
8
|
+
@interface RGLWRegulaConfig : NSObject
|
|
9
9
|
|
|
10
10
|
+(void)setConfig:(NSDictionary*) options : (RGLDocReader*) reader;
|
|
11
11
|
+(NSMutableDictionary *)getConfig:(RGLDocReader*) reader;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#import <Foundation/Foundation.h>
|
|
2
|
-
#import "
|
|
2
|
+
#import "RGLWRegulaConfig.h"
|
|
3
3
|
|
|
4
|
-
@implementation
|
|
4
|
+
@implementation RGLWRegulaConfig
|
|
5
5
|
+(void)setConfig:(NSDictionary*)options :(RGLDocReader*)reader {
|
|
6
6
|
if([options valueForKey:@"customization"] != nil)
|
|
7
7
|
[self setCustomization: [options valueForKey:@"customization"]: reader.customization];
|
|
@@ -578,6 +578,8 @@
|
|
|
578
578
|
customization.toolbarSize = [[options valueForKey:@"toolbarSize"] floatValue];
|
|
579
579
|
if([options valueForKey:@"statusBackgroundColor"] != nil)
|
|
580
580
|
customization.statusBackgroundColor = [self getUIColorObjectFromHexString:[options valueForKey:@"statusBackgroundColor"] alpha:1];
|
|
581
|
+
if([options valueForKey:@"cameraPreviewBackgroundColor"] != nil)
|
|
582
|
+
customization.cameraPreviewBackgroundColor = [self getUIColorObjectFromHexString:[options valueForKey:@"cameraPreviewBackgroundColor"] alpha:1];
|
|
581
583
|
if([options valueForKey:@"hologramAnimationImageContentMode"] != nil)
|
|
582
584
|
customization.hologramAnimationImageContentMode = [self UIViewContentModeWithNSInteger:[[options valueForKey:@"hologramAnimationImageContentMode"] integerValue]];
|
|
583
585
|
if([options valueForKey:@"hologramAnimationPositionMultiplier"] != nil)
|
|
@@ -625,7 +627,9 @@
|
|
|
625
627
|
if([options valueForKey:@"cameraPosition"] != nil)
|
|
626
628
|
functionality.cameraPosition = [self AVCaptureDevicePositionWithNSInteger:[[options valueForKey:@"cameraPosition"] integerValue]];
|
|
627
629
|
if([options valueForKey:@"btDeviceName"] != nil)
|
|
630
|
+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
628
631
|
functionality.btDeviceName = [options valueForKey:@"btDeviceName"];
|
|
632
|
+
#pragma clang diagnostic pop
|
|
629
633
|
if([options valueForKey:@"useAuthenticator"] != nil)
|
|
630
634
|
functionality.useAuthenticator = [[options valueForKey:@"useAuthenticator"] boolValue];
|
|
631
635
|
if([options valueForKey:@"showCaptureButtonDelayFromDetect"] != nil)
|
|
@@ -644,6 +648,8 @@
|
|
|
644
648
|
functionality.recordScanningProcess = [[options valueForKey:@"recordScanningProcess"] boolValue];
|
|
645
649
|
if([options valueForKey:@"manualMultipageMode"] != nil)
|
|
646
650
|
functionality.manualMultipageMode = [[options valueForKey:@"manualMultipageMode"] boolValue];
|
|
651
|
+
if([options valueForKey:@"videoOutputSettings"] != nil)
|
|
652
|
+
functionality.videoOutputSettings = [options valueForKey:@"videoOutputSettings"];
|
|
647
653
|
if([options valueForKey:@"onlineProcessingConfiguration"] != nil)
|
|
648
654
|
functionality.onlineProcessingConfig = [self RGLOnlineProcessingConfigFromJSON:[options valueForKey:@"onlineProcessingConfiguration"]];;
|
|
649
655
|
}
|
|
@@ -724,7 +730,7 @@
|
|
|
724
730
|
if([options valueForKey:@"updateOCRValidityByGlare"] != nil)
|
|
725
731
|
processParams.updateOCRValidityByGlare = [options valueForKey:@"updateOCRValidityByGlare"];
|
|
726
732
|
if([options valueForKey:@"imageQA"] != nil)
|
|
727
|
-
processParams.imageQA = [
|
|
733
|
+
processParams.imageQA = [RGLWRegulaConfig ImageQAFromJson:[options valueForKey:@"imageQA"]];
|
|
728
734
|
if([options valueForKey:@"forceDocFormat"] != nil)
|
|
729
735
|
processParams.forceDocFormat = [options valueForKey:@"forceDocFormat"];
|
|
730
736
|
if([options valueForKey:@"noGraphics"] != nil)
|
|
@@ -761,6 +767,8 @@
|
|
|
761
767
|
processParams.documentGroupFilter = [options mutableArrayValueForKey:@"documentGroupFilter"];
|
|
762
768
|
if([options valueForKey:@"convertCase"] != nil)
|
|
763
769
|
processParams.convertCase = [options valueForKey:@"convertCase"];
|
|
770
|
+
if([options valueForKey:@"rfidParams"] != nil)
|
|
771
|
+
processParams.rfidParams = [self RGLRFIDParamsFromJSON:[options valueForKey:@"rfidParams"]];
|
|
764
772
|
}
|
|
765
773
|
|
|
766
774
|
+(NSMutableDictionary *)getCustomization:(RGLCustomization*)customization {
|
|
@@ -817,6 +825,8 @@
|
|
|
817
825
|
result[@"statusTextColor"] = [self hexStringFromUIColor:customization.statusTextColor];
|
|
818
826
|
if(customization.resultStatusBackgroundColor != nil)
|
|
819
827
|
result[@"resultStatusBackgroundColor"] = [self hexStringFromUIColor:customization.resultStatusBackgroundColor];
|
|
828
|
+
if(customization.cameraPreviewBackgroundColor != nil)
|
|
829
|
+
result[@"cameraPreviewBackgroundColor"] = [self hexStringFromUIColor:customization.cameraPreviewBackgroundColor];
|
|
820
830
|
if(customization.cameraFrameDefaultColor != nil)
|
|
821
831
|
result[@"cameraFrameDefaultColor"] = [self hexStringFromUIColor:customization.cameraFrameDefaultColor];
|
|
822
832
|
if(customization.cameraFrameActiveColor != nil)
|
|
@@ -846,7 +856,9 @@
|
|
|
846
856
|
result[@"videoCaptureMotionControl"] = [NSNumber numberWithBool:functionality.videoCaptureMotionControl];
|
|
847
857
|
result[@"orientation"] = [NSNumber numberWithInteger:[self NSIntegerWithUIInterfaceOrientationMask:functionality.orientation]];
|
|
848
858
|
result[@"cameraPosition"] = [NSNumber numberWithInteger:[self NSIntegerWithAVCaptureDevicePosition:functionality.cameraPosition]];
|
|
859
|
+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
849
860
|
result[@"btDeviceName"] = functionality.btDeviceName;
|
|
861
|
+
#pragma clang diagnostic pop
|
|
850
862
|
result[@"useAuthenticator"] = [NSNumber numberWithBool:functionality.isUseAuthenticator];
|
|
851
863
|
result[@"showCaptureButtonDelayFromDetect"] = [NSNumber numberWithDouble:functionality.showCaptureButtonDelayFromDetect];
|
|
852
864
|
result[@"showCaptureButtonDelayFromStart"] = [NSNumber numberWithDouble:functionality.showCaptureButtonDelayFromStart];
|
|
@@ -856,6 +868,7 @@
|
|
|
856
868
|
result[@"zoomFactor"] = [NSNumber numberWithBool:functionality.zoomFactor];
|
|
857
869
|
result[@"recordScanningProcess"] = [NSNumber numberWithBool:functionality.recordScanningProcess];
|
|
858
870
|
result[@"manualMultipageMode"] = [NSNumber numberWithBool:functionality.manualMultipageMode];
|
|
871
|
+
result[@"videoOutputSettings"] = functionality.videoOutputSettings;
|
|
859
872
|
|
|
860
873
|
return result;
|
|
861
874
|
}
|
|
@@ -901,7 +914,7 @@
|
|
|
901
914
|
result[@"matchTextFieldMask"] = processParams.matchTextFieldMask;
|
|
902
915
|
result[@"fastDocDetect"] = processParams.fastDocDetect;
|
|
903
916
|
result[@"updateOCRValidityByGlare"] = processParams.updateOCRValidityByGlare;
|
|
904
|
-
result[@"imageQA"] = [
|
|
917
|
+
result[@"imageQA"] = [RGLWRegulaConfig ImageQAToJson:processParams.imageQA];
|
|
905
918
|
result[@"forceDocFormat"] = processParams.forceDocFormat;
|
|
906
919
|
result[@"noGraphics"] = processParams.noGraphics;
|
|
907
920
|
result[@"documentAreaMin"] = processParams.documentAreaMin;
|
|
@@ -1029,4 +1042,13 @@
|
|
|
1029
1042
|
rfidScenario.defaultReadingBufferSize = [[options valueForKey:@"defaultReadingBufferSize"] intValue];
|
|
1030
1043
|
}
|
|
1031
1044
|
|
|
1045
|
+
+(RGLRFIDParams*)RGLRFIDParamsFromJSON:(NSDictionary*)input {
|
|
1046
|
+
RGLRFIDParams* result = [RGLRFIDParams new];
|
|
1047
|
+
|
|
1048
|
+
if([input valueForKey:@"paIgnoreNotificationCodes"] != nil)
|
|
1049
|
+
result.paIgnoreNotificationCodes = [input valueForKey:@"paIgnoreNotificationCodes"];
|
|
1050
|
+
|
|
1051
|
+
return result;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1032
1054
|
@end
|
package/www/DocumentReader.js
CHANGED
|
@@ -101,6 +101,7 @@ class DocumentReaderGraphicField {
|
|
|
101
101
|
result.fieldType = jsonObject["fieldType"]
|
|
102
102
|
result.lightType = jsonObject["lightType"]
|
|
103
103
|
result.pageIndex = jsonObject["pageIndex"]
|
|
104
|
+
result.originalPageIndex = jsonObject["originalPageIndex"]
|
|
104
105
|
result.fieldName = jsonObject["fieldName"]
|
|
105
106
|
result.lightName = jsonObject["lightName"]
|
|
106
107
|
result.value = jsonObject["value"]
|
|
@@ -280,6 +281,7 @@ class DocumentReaderDocumentType {
|
|
|
280
281
|
result.dType = jsonObject["dType"]
|
|
281
282
|
result.dFormat = jsonObject["dFormat"]
|
|
282
283
|
result.dMRZ = jsonObject["dMRZ"]
|
|
284
|
+
result.isDeprecated = jsonObject["isDeprecated"]
|
|
283
285
|
result.name = jsonObject["name"]
|
|
284
286
|
result.ICAOCode = jsonObject["ICAOCode"]
|
|
285
287
|
result.dDescription = jsonObject["dDescription"]
|
|
@@ -767,6 +769,8 @@ class ImageInputParam {
|
|
|
767
769
|
result.width = jsonObject["width"]
|
|
768
770
|
result.height = jsonObject["height"]
|
|
769
771
|
result.type = jsonObject["type"]
|
|
772
|
+
result.disableFrameShiftIR = jsonObject["disableFrameShiftIR"]
|
|
773
|
+
result.doFlipYAxis = jsonObject["doFlipYAxis"]
|
|
770
774
|
|
|
771
775
|
return result
|
|
772
776
|
}
|
|
@@ -1258,6 +1262,11 @@ const eRPRM_Authenticity = {
|
|
|
1258
1262
|
KINEGRAM: 131072,
|
|
1259
1263
|
HOLOGRAMS_DETECTION: 524288,
|
|
1260
1264
|
MRZ: 8388608,
|
|
1265
|
+
STATUS_ONLY: 0x80000000,
|
|
1266
|
+
OVI: 0x00000400,
|
|
1267
|
+
LIVENESS: 0x00200000,
|
|
1268
|
+
OCR: 0x00400000,
|
|
1269
|
+
UV: 1 | 4 | 16,
|
|
1261
1270
|
}
|
|
1262
1271
|
|
|
1263
1272
|
const eRFID_ErrorCodes = {
|
|
@@ -2179,6 +2188,7 @@ const ScenarioIdentifier = {
|
|
|
2179
2188
|
SCENARIO_OCR_FREE: "OcrFree",
|
|
2180
2189
|
SCENARIO_CREDIT_CARD: "CreditCard",
|
|
2181
2190
|
SCENARIO_CAPTURE: "Capture",
|
|
2191
|
+
SCENARIO_BARCODE_AND_LOCATE: "BarcodeAndLocate",
|
|
2182
2192
|
}
|
|
2183
2193
|
|
|
2184
2194
|
const eRFID_AccessControl_ProcedureType = {
|
|
@@ -2381,9 +2391,18 @@ const eCheckDiagnose = {
|
|
|
2381
2391
|
FINISHED_BY_TIMEOUT: 186,
|
|
2382
2392
|
HOLO_PHOTO_DOCUMENT_OUTSIDE_FRAME: 187,
|
|
2383
2393
|
LIVENESS_DEPTH_CHECK_FAILED: 190,
|
|
2384
|
-
|
|
2394
|
+
MRZ_QUALITY_WRONG_SYMBOL_POSITION: 200,
|
|
2385
2395
|
MRZ_QUALITY_WRONG_BACKGROUND: 201,
|
|
2386
|
-
|
|
2396
|
+
MRZ_QUALITY_WRONG_MRZ_WIDTH: 202,
|
|
2397
|
+
MRZ_QUALITY_WRONG_MRZ_HEIGHT: 203,
|
|
2398
|
+
MRZ_QUALITY_WRONG_LINE_POSITION: 204,
|
|
2399
|
+
MRZ_QUALITY_WRONG_FONT_TYPE: 205,
|
|
2400
|
+
OCR_QUALITY_TEXT_POSITION: 220,
|
|
2401
|
+
OCR_QUALITY_INVALID_FONT: 221,
|
|
2402
|
+
OCR_QUALITY_INVALID_BACKGROUND: 222,
|
|
2403
|
+
LAS_INK_INVALID_LINES_FREQUENCY: 230,
|
|
2404
|
+
LAST_DIAGNOSE_VALUE: 250,
|
|
2405
|
+
DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
|
|
2387
2406
|
}
|
|
2388
2407
|
|
|
2389
2408
|
const RFIDDelegate = {
|
|
@@ -3157,7 +3176,7 @@ const BarcodeType = {
|
|
|
3157
3176
|
}
|
|
3158
3177
|
|
|
3159
3178
|
const eRPRM_SecurityFeatureType = {
|
|
3160
|
-
|
|
3179
|
+
SECURITY_FEATURE_TYPE_NONE: -1,
|
|
3161
3180
|
SECURITY_FEATURE_TYPE_BLANK: 0,
|
|
3162
3181
|
SECURITY_FEATURE_TYPE_FILL: 1,
|
|
3163
3182
|
SECURITY_FEATURE_TYPE_PHOTO: 2,
|
|
@@ -3186,7 +3205,22 @@ const eRPRM_SecurityFeatureType = {
|
|
|
3186
3205
|
SECURITY_FEATURE_TYPE_PHOTO_COLOR: 25,
|
|
3187
3206
|
SECURITY_FEATURE_TYPE_PHOTO_SHAPE: 26,
|
|
3188
3207
|
SECURITY_FEATURE_TYPE_PHOTO_CORNERS: 27,
|
|
3189
|
-
|
|
3208
|
+
SECURITY_FEATURE_TYPE_OCR: 28,
|
|
3209
|
+
SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_EXTVS_VISUAL: 29,
|
|
3210
|
+
SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_EXTVS_RFID: 30,
|
|
3211
|
+
SECURITY_FEATURE_TYPE_PORTRAIT_COMPARISON_EXTVS_LIVE: 31,
|
|
3212
|
+
SECURITY_FEATURE_TYPE_LIVENESS_DEPTH: 32,
|
|
3213
|
+
SECURITY_FEATURE_TYPE_MICROTEXT: 33,
|
|
3214
|
+
SECURITY_FEATURE_TYPE_FLUORESCENT_OBJECT: 34,
|
|
3215
|
+
SECURITY_FEATURE_TYPE_LANDMARKS_CHECK: 35,
|
|
3216
|
+
SECURITY_FEATURE_TYPE_FACE_PRESENCE: 36,
|
|
3217
|
+
SECURITY_FEATURE_TYPE_FACE_ABSENCE: 38,
|
|
3218
|
+
SECURITY_FEATURE_TYPE_LIVENESS_SCREEN_CAPTURE: 39,
|
|
3219
|
+
SECURITY_FEATURE_TYPE_LIVENESS_ELECTRONIC_DEVICE: 40,
|
|
3220
|
+
SECURITY_FEATURE_TYPE_LIVENESS_OVI: 41,
|
|
3221
|
+
SECURITY_FEATURE_TYPE_BARCODE_SIZE_CHECK: 42,
|
|
3222
|
+
SECURITY_FEATURE_TYPE_LAS_INK: 43,
|
|
3223
|
+
SECURITY_FEATURE_TYPE_LIVENESS_MLI: 44,
|
|
3190
3224
|
}
|
|
3191
3225
|
|
|
3192
3226
|
const OnlineMode = {
|
|
@@ -4419,6 +4453,16 @@ const eVisualFieldType = {
|
|
|
4419
4453
|
FT_DLCLASSCODE_PW_FROM: 654,
|
|
4420
4454
|
FT_DLCLASSCODE_PW_NOTES: 655,
|
|
4421
4455
|
FT_DLCLASSCODE_PW_TO: 656,
|
|
4456
|
+
FT_DLCLASSCODE_EB_FROM: 657,
|
|
4457
|
+
FT_DLCLASSCODE_EB_NOTES: 658,
|
|
4458
|
+
FT_DLCLASSCODE_EB_TO: 659,
|
|
4459
|
+
FT_DLCLASSCODE_EC_FROM: 660,
|
|
4460
|
+
FT_DLCLASSCODE_EC_NOTES: 661,
|
|
4461
|
+
FT_DLCLASSCODE_EC_TO: 662,
|
|
4462
|
+
FT_DLCLASSCODE_EC1_FROM: 663,
|
|
4463
|
+
FT_DLCLASSCODE_EC1_NOTES: 664,
|
|
4464
|
+
FT_DLCLASSCODE_EC1_TO: 665,
|
|
4465
|
+
FT_PLACE_OF_BIRTH_CITY: 666,
|
|
4422
4466
|
|
|
4423
4467
|
getTranslation: function (value) {
|
|
4424
4468
|
switch (value) {
|
|
@@ -6142,6 +6186,7 @@ const eRPRM_Lights = {
|
|
|
6142
6186
|
RPRM_Light_IR_SIDE: 16,
|
|
6143
6187
|
RPRM_Light_IR_Full: (8 | 16),
|
|
6144
6188
|
RPRM_LIGHT_OVD: 67108864,
|
|
6189
|
+
RPRM_LIGHT_WHITE_FULL_OVD: (6 | 67108864),
|
|
6145
6190
|
|
|
6146
6191
|
getTranslation: function (value) {
|
|
6147
6192
|
switch (value) {
|
|
@@ -6339,6 +6384,8 @@ DocumentReader.recognizeVideoFrame = (byteString, params, successCallback, error
|
|
|
6339
6384
|
DocumentReader.showScannerWithCameraIDAndOpts = (cameraID, options, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["showScannerWithCameraIDAndOpts", cameraID, options])
|
|
6340
6385
|
DocumentReader.recognizeImageWithCameraMode = (image, mode, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImageWithCameraMode", image, mode])
|
|
6341
6386
|
DocumentReader.recognizeImagesWithImageInputs = (images, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImagesWithImageInputs", images])
|
|
6387
|
+
DocumentReader.setOnCustomButtonTappedListener = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setOnCustomButtonTappedListener"])
|
|
6388
|
+
DocumentReader.setLanguage = (language, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setLanguage", language])
|
|
6342
6389
|
|
|
6343
6390
|
DocumentReader.textFieldValueByType = (results, fieldType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByType", results.rawResult, fieldType])
|
|
6344
6391
|
DocumentReader.textFieldValueByTypeLcid = (results, fieldType, lcid, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["textFieldValueByTypeLcid", results.rawResult, fieldType, lcid])
|
|
@@ -6358,9 +6405,70 @@ DocumentReader.graphicFieldImageByTypeSourcePageIndexLight = (results, fieldType
|
|
|
6358
6405
|
DocumentReader.containers = (results, resultType, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["containers", results.rawResult, resultType])
|
|
6359
6406
|
DocumentReader.encryptedContainers = (results, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["encryptedContainers", results.rawResult])
|
|
6360
6407
|
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
DocumentReader
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6408
|
+
DocumentReaderPlugin = {}
|
|
6409
|
+
|
|
6410
|
+
DocumentReaderPlugin.DocumentReader = DocumentReader
|
|
6411
|
+
DocumentReaderPlugin.Enum = Enum
|
|
6412
|
+
|
|
6413
|
+
DocumentReaderPlugin.DocumentReaderScenario = DocumentReaderScenario
|
|
6414
|
+
DocumentReaderPlugin.CoreDetailedScenario = CoreDetailedScenario
|
|
6415
|
+
DocumentReaderPlugin.FaceMetaData = FaceMetaData
|
|
6416
|
+
DocumentReaderPlugin.Bounds = Bounds
|
|
6417
|
+
DocumentReaderPlugin.Rect = Rect
|
|
6418
|
+
DocumentReaderPlugin.DocReaderFieldRect = DocReaderFieldRect
|
|
6419
|
+
DocumentReaderPlugin.DocumentReaderGraphicField = DocumentReaderGraphicField
|
|
6420
|
+
DocumentReaderPlugin.DocumentReaderGraphicResult = DocumentReaderGraphicResult
|
|
6421
|
+
DocumentReaderPlugin.DocumentReaderValue = DocumentReaderValue
|
|
6422
|
+
DocumentReaderPlugin.DocumentReaderTextField = DocumentReaderTextField
|
|
6423
|
+
DocumentReaderPlugin.DocumentReaderTextResult = DocumentReaderTextResult
|
|
6424
|
+
DocumentReaderPlugin.Coordinate = Coordinate
|
|
6425
|
+
DocumentReaderPlugin.ElementPosition = ElementPosition
|
|
6426
|
+
DocumentReaderPlugin.ImageQuality = ImageQuality
|
|
6427
|
+
DocumentReaderPlugin.ImageQualityGroup = ImageQualityGroup
|
|
6428
|
+
DocumentReaderPlugin.DocumentReaderDocumentType = DocumentReaderDocumentType
|
|
6429
|
+
DocumentReaderPlugin.DocumentReaderNotification = DocumentReaderNotification
|
|
6430
|
+
DocumentReaderPlugin.AccessControlProcedureType = AccessControlProcedureType
|
|
6431
|
+
DocumentReaderPlugin.FileData = FileData
|
|
6432
|
+
DocumentReaderPlugin.CertificateData = CertificateData
|
|
6433
|
+
DocumentReaderPlugin.SecurityObjectCertificates = SecurityObjectCertificates
|
|
6434
|
+
DocumentReaderPlugin.File = File
|
|
6435
|
+
DocumentReaderPlugin.Application = Application
|
|
6436
|
+
DocumentReaderPlugin.Value = Value
|
|
6437
|
+
DocumentReaderPlugin.Attribute = Attribute
|
|
6438
|
+
DocumentReaderPlugin.Authority = Authority
|
|
6439
|
+
DocumentReaderPlugin.Extension = Extension
|
|
6440
|
+
DocumentReaderPlugin.Validity = Validity
|
|
6441
|
+
DocumentReaderPlugin.CertificateChain = CertificateChain
|
|
6442
|
+
DocumentReaderPlugin.SignerInfo = SignerInfo
|
|
6443
|
+
DocumentReaderPlugin.SecurityObject = SecurityObject
|
|
6444
|
+
DocumentReaderPlugin.CardProperties = CardProperties
|
|
6445
|
+
DocumentReaderPlugin.RFIDSessionData = RFIDSessionData
|
|
6446
|
+
DocumentReaderPlugin.DocumentReaderAuthenticityCheck = DocumentReaderAuthenticityCheck
|
|
6447
|
+
DocumentReaderPlugin.PDF417Info = PDF417Info
|
|
6448
|
+
DocumentReaderPlugin.DocumentReaderBarcodeResult = DocumentReaderBarcodeResult
|
|
6449
|
+
DocumentReaderPlugin.DocumentReaderBarcodeField = DocumentReaderBarcodeField
|
|
6450
|
+
DocumentReaderPlugin.DocumentReaderAuthenticityResult = DocumentReaderAuthenticityResult
|
|
6451
|
+
DocumentReaderPlugin.DocumentReaderAuthenticityElement = DocumentReaderAuthenticityElement
|
|
6452
|
+
DocumentReaderPlugin.DocumentReaderCompletion = DocumentReaderCompletion
|
|
6453
|
+
DocumentReaderPlugin.RfidNotificationCompletion = RfidNotificationCompletion
|
|
6454
|
+
DocumentReaderPlugin.DocumentReaderException = DocumentReaderException
|
|
6455
|
+
DocumentReaderPlugin.PKDCertificate = PKDCertificate
|
|
6456
|
+
DocumentReaderPlugin.ImageInputParam = ImageInputParam
|
|
6457
|
+
DocumentReaderPlugin.PAResourcesIssuer = PAResourcesIssuer
|
|
6458
|
+
DocumentReaderPlugin.PAAttribute = PAAttribute
|
|
6459
|
+
DocumentReaderPlugin.TAChallenge = TAChallenge
|
|
6460
|
+
DocumentReaderPlugin.DocumentReaderResultsStatus = DocumentReaderResultsStatus
|
|
6461
|
+
DocumentReaderPlugin.DetailsOptical = DetailsOptical
|
|
6462
|
+
DocumentReaderPlugin.DetailsRFID = DetailsRFID
|
|
6463
|
+
DocumentReaderPlugin.VDSNCData = VDSNCData
|
|
6464
|
+
DocumentReaderPlugin.BytesData = BytesData
|
|
6465
|
+
DocumentReaderPlugin.ImageInputData = ImageInputData
|
|
6466
|
+
DocumentReaderPlugin.DocReaderDocumentsDatabase = DocReaderDocumentsDatabase
|
|
6467
|
+
DocumentReaderPlugin.DocumentReaderComparison = DocumentReaderComparison
|
|
6468
|
+
DocumentReaderPlugin.DocumentReaderRfidOrigin = DocumentReaderRfidOrigin
|
|
6469
|
+
DocumentReaderPlugin.DocumentReaderTextSource = DocumentReaderTextSource
|
|
6470
|
+
DocumentReaderPlugin.DocumentReaderSymbol = DocumentReaderSymbol
|
|
6471
|
+
DocumentReaderPlugin.DocumentReaderValidity = DocumentReaderValidity
|
|
6472
|
+
DocumentReaderPlugin.DocumentReaderResults = DocumentReaderResults
|
|
6473
|
+
|
|
6474
|
+
module.exports = DocumentReaderPlugin
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#import <Cordova/CDVPlugin.h>
|
|
2
|
-
#import <Foundation/Foundation.h>
|
|
3
|
-
#import "RGLWJSONConstructor.h"
|
|
4
|
-
#import "RegulaConfig.h"
|
|
5
|
-
#import <DocumentReader/DocumentReader.h>
|
|
6
|
-
|
|
7
|
-
@class DocReader;
|
|
8
|
-
|
|
9
|
-
@interface RGLDocumentReader : CDVPlugin<RGLRecordScanningProcessDelegate, RGLDocReaderRFIDDelegate>
|
|
10
|
-
|
|
11
|
-
@property (class) CDVInvokedUrlCommand* _Nullable command;
|
|
12
|
-
@property (class) NSNumber* _Nullable databasePercentageDownloaded;
|
|
13
|
-
|
|
14
|
-
- (void) sendEvent:(NSString*_Nullable)data :(NSString*_Nonnull)callbackId;
|
|
15
|
-
|
|
16
|
-
@end
|
|
17
|
-
|
|
18
|
-
@interface RFIDDelegateNoPA : NSObject<RGLDocReaderRFIDDelegate>
|
|
19
|
-
@end
|