Document Verification is exposed as a flow which performs the following high level steps:
Displays instructions to the user
Requests camera permissions (if not already granted)
Performs Document Capture
Performs Selfie Capture
Submits the job to the Smile ID API
Delivers the result back to the caller
The screen is exposed as a Flutter Widget which you can incorporate into your app as follows:
SmileIDDocumentVerification( countryCode:"GH",// There are more parameters -- they correspond 1:1 with the native SDK parameters onSuccess: (String? result) {// Your success handling logic }, onError: (String errorMessage) {// Your error handling logic })
On success, you will receive a JSON string following the structure: