SotaIdPlugin class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkCameraPermission()
→ Future<bool>
-
Check camera permission
-
checkPermissions()
→ Future<bool>
-
Check if the app has necessary permissions
-
checkStoragePermission()
→ Future<bool>
-
Check storage permission
-
clearPendingSession()
→ Future<void>
-
Clear pending verification session
-
createVerificationSession({required VerificationType verificationType, File? documentFile})
→ Future<VerificationSession>
-
Create a new verification session
-
getCountries()
→ Future<List<Country>>
-
Get available countries from the API
-
getPendingSession()
→ Future<Map<String, dynamic>?>
-
Check if there's a pending manual verification
-
getVerificationStatus(String sessionId)
→ Future<VerificationStatus>
-
Get verification status
-
initialize({bool sandboxMode = true, String? bearerToken})
→ void
-
Initialize the plugin with environment configuration and bearer token
-
isNfcAvailable()
→ Future<bool>
-
Check if NFC is available on the device
-
isNfcEnabled()
→ Future<bool>
-
Check if NFC is enabled on the device
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pickImage({bool fromCamera = false})
→ Future<File?>
-
Pick an image from gallery or camera
-
readNfcDocument(String documentType)
→ Future<PersonDetails?>
-
Read NFC document
-
recordFaceVideo(BuildContext context)
→ Future<File?>
-
Record a face video using custom camera interface
-
requestCameraPermission()
→ Future<bool>
-
Request camera permission
-
requestStoragePermission()
→ Future<bool>
-
Request storage permission
-
showPendingVerificationDialog(BuildContext context)
→ Future<bool?>
-
Show dialog for pending verification choice
-
startCompleteVerification({required BuildContext context, dynamic onVerificationComplete(VerificationResponse)?, dynamic onError(String)?})
→ Future<void>
-
Start complete verification flow (document + face)
-
startFaceVerification({required BuildContext context, required File documentFile, dynamic onVerificationComplete(VerificationResponse)?, dynamic onError(String)?})
→ Future<void>
-
Start face-only verification flow
-
startLivenessVerification({required BuildContext context, dynamic onVerificationComplete(VerificationResponse)?, dynamic onError(String)?})
→ Future<void>
-
Start liveness-only verification flow
-
startVerificationFlow({required BuildContext context, required VerificationType verificationType, File? documentFile, dynamic onVerificationComplete(VerificationResponse)?, dynamic onError(String)?})
→ Future<void>
-
Start the verification flow with app-controlled verification type
The app decides whether to show complete verification or face-only verification
-
storePendingSession(VerificationResponse response)
→ Future<void>
-
Store pending verification session for manual verification
-
toString()
→ String
-
A string representation of this object.
inherited
-
verifyBack(String sessionId, File photo)
→ Future<VerificationResponse>
-
Verify document back
-
verifyFace(String sessionId, File video, VerificationType verificationType)
→ Future<VerificationResponse>
-
Verify face
-
verifyFront(String sessionId, String documentType, String countryCode, File photo)
→ Future<VerificationResponse>
-
Verify document front
-
verifyNfcDocument(String sessionId, String documentType, String countryCode, File faceVideo, PersonDetails documentInfo)
→ Future<VerificationResponse>
-
Verify NFC document