SmileIDEnhancedDocumentVerification constructor
SmileIDEnhancedDocumentVerification({
- Key? key,
- required String countryCode,
- String? documentType,
- double? idAspectRatio,
- bool captureBothSides = true,
- String? bypassSelfieCaptureWithFile,
- String? userId,
- String? jobId,
- bool allowNewEnroll = false,
- bool showAttribution = true,
- bool allowGalleryUpload = false,
- bool allowAgentMode = false,
- bool showInstructions = true,
- Map<
String, String> ? extraPartnerParams, - required dynamic onSuccess(
- String resultJson
- required dynamic onError(
- String errorMessage
Implementation
factory SmileIDEnhancedDocumentVerification({
Key? key,
required String countryCode,
String? documentType,
double? idAspectRatio,
bool captureBothSides = true,
String? bypassSelfieCaptureWithFile,
// userId and jobId can't actually be null in the native SDK but we delegate their creation to
// the native platform code, since that's where the random ID creation happens
String? userId,
String? jobId,
bool allowNewEnroll = false,
bool showAttribution = true,
bool allowGalleryUpload = false,
bool allowAgentMode = false,
bool showInstructions = true,
Map<String, String>? extraPartnerParams,
required Function(String resultJson) onSuccess,
required Function(String errorMessage) onError,
}) {
return SmileIDEnhancedDocumentVerification._(
onSuccess: onSuccess,
onError: onError,
creationParams: {
"countryCode": countryCode,
"documentType": documentType,
"idAspectRatio": idAspectRatio,
"captureBothSides": captureBothSides,
"userId": userId,
"jobId": jobId,
"allowNewEnroll": allowNewEnroll,
"showAttribution": showAttribution,
"allowAgentMode": allowAgentMode,
"allowGalleryUpload": allowGalleryUpload,
"showInstructions": showInstructions,
"extraPartnerParams" : extraPartnerParams,
},
);
}