SmileIDSmartSelfieAuthentication constructor
SmileIDSmartSelfieAuthentication({
- Key? key,
- String? userId,
- bool allowNewEnroll = false,
- bool allowAgentMode = false,
- bool showAttribution = true,
- bool showInstructions = true,
- bool skipApiSubmission = false,
- Map<
String, String> ? extraPartnerParams, - required dynamic onSuccess(
- String resultJson
- required dynamic onError(
- String errorMessage
Implementation
factory SmileIDSmartSelfieAuthentication({
Key? key,
// userId 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,
bool allowNewEnroll = false,
bool allowAgentMode = false,
bool showAttribution = true,
bool showInstructions = true,
bool skipApiSubmission = false,
Map<String, String>? extraPartnerParams,
required Function(String resultJson) onSuccess,
required Function(String errorMessage) onError,
}) {
return SmileIDSmartSelfieAuthentication._(
onSuccess: onSuccess,
onError: onError,
creationParams: {
"userId": userId,
"allowNewEnroll": allowNewEnroll,
"allowAgentMode": allowAgentMode,
"showAttribution": showAttribution,
"showInstructions": showInstructions,
"skipApiSubmission" : skipApiSubmission,
"extraPartnerParams" : extraPartnerParams,
},
);
}