Skip to main content

Documentation Index

Fetch the complete documentation index at: https://jdev-e8db0569.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

SeonVerificationStatus

Enum representing the possible verification outcomes returned by startVerification().
enum SeonVerificationStatus {
  completed,
  completedSuccess,
  completedPending,
  completedFailed,
  interruptedByUser,
  error,
  missingLocationPermission,
}

Values

ValueDescription
completedVerification process completed (generic completion status)
completedSuccessVerification completed successfully — user is verified
completedPendingVerification completed but requires manual review
completedFailedVerification completed but user failed verification
interruptedByUserUser cancelled or interrupted the verification flow
errorAn error occurred during verification (check errorMessage for native error codes)
missingLocationPermissionVerification cannot proceed due to missing location permission (Android only)

Usage

import 'package:seon_orchestration_flutter/seon_orchestration_flutter.dart';

final result = await SeonOrchestration.startVerification();

switch (result.status) {
  case SeonVerificationStatus.completedSuccess:
    // Handle success
    break;
  case SeonVerificationStatus.completedPending:
    // Handle pending review
    break;
  case SeonVerificationStatus.completedFailed:
    // Handle failure
    break;
  case SeonVerificationStatus.interruptedByUser:
    // Handle user cancellation
    break;
  case SeonVerificationStatus.error:
    print(result.errorMessage);
    break;
  case SeonVerificationStatus.missingLocationPermission:
    // Prompt user to enable location (Android)
    break;
  default:
    break;
}

Native SDK Error Messages

When status is error, the errorMessage field contains a message from the native SEON SDK describing what went wrong. Common causes include expired sessions, network failures, and invalid configuration. Refer to the SEON documentation for the full list of native error messages.
final result = await SeonOrchestration.startVerification();

if (result.status == SeonVerificationStatus.error) {
  print('Native SDK error: ${result.errorMessage}');
}

SeonErrorCode

Enum representing the error codes used on the code property of SeonException. The rawCode string property on SeonException preserves the original platform string for logging.
enum SeonErrorCode {
  eNotInitialized,
  eInitializationFailed,
  eNoActivity,
  eVerificationFailed,
  eVerificationInProgress,
  eInvalidArgs,
  unknown;

  static SeonErrorCode fromString(String raw) { ... }
}

Values

CodeString EquivalentDescriptionThrown By
eNotInitializedE_NOT_INITIALIZEDinitialize() must be called before startVerification()startVerification()
eInitializationFailedE_INITIALIZATION_FAILEDSDK initialization failed — check configurationinitialize()
eNoActivityE_NO_ACTIVITYNo activity available to launch verification (Android only)startVerification()
eVerificationFailedE_VERIFICATION_FAILEDVerification process failed unexpectedlystartVerification()
eVerificationInProgressE_VERIFICATION_IN_PROGRESSCannot start a new verification while one is already runningstartVerification()
eInvalidArgsE_INVALID_ARGSInvalid arguments passed to a methodinitialize()
unknown(any other string)Unrecognized error code from the platformAny method

Usage

import 'package:seon_orchestration_flutter/seon_orchestration_flutter.dart';

try {
  await SeonOrchestration.startVerification();
} on SeonException catch (e) {
  if (e.code == SeonErrorCode.eNotInitialized) {
    print('Call initialize() first');
  } else if (e.code == SeonErrorCode.eVerificationInProgress) {
    print('A verification is already running');
  } else {
    print('Unexpected error (${e.rawCode}): ${e.message}');
  }
}