invoke method
Future<bool>
invoke({})
Implementation
Future<bool> invoke(
{required String baseUrl,
required String apiKey,
bool? enableManualCapturingFallback,
int? captureTimeout,
int? maxCapturingWidth,
int? maxCapturingHeight,
String? warningAction,
String? userName,
String? phoneNumber,
String? email,
required Function(InitializationResult) onSuccess,
required Function(DigifiedError) onFailed}) async {
_onSuccess = onSuccess;
_onFailed = onFailed;
return sendToNative({
InitializeConstants.baseUrl: baseUrl,
InitializeConstants.apiKey: apiKey,
InitializeConstants.enableManualCapturingFallback: enableManualCapturingFallback,
InitializeConstants.captureTimeout: captureTimeout,
InitializeConstants.maxCapturingWidth: maxCapturingWidth,
InitializeConstants.maxCapturingHeight: maxCapturingHeight,
InitializeConstants.warningAction: warningAction,
InitializeConstants.userName: userName,
InitializeConstants.phoneNumber: phoneNumber,
InitializeConstants.email: email
});
}