LivenessCheckCallbacks constructor

const LivenessCheckCallbacks({
  1. VoidCallback? onSuccess,
  2. dynamic onError(
    1. String error
    )?,
  3. dynamic onErrorWithType(
    1. dynamic errorType,
    2. String message
    )?,
  4. VoidCallback? onCancel,
  5. dynamic onPhotoTaken(
    1. String imagePath,
    2. bool antiSpoofingPassed
    )?,
  6. dynamic onProgressUpdate(
    1. int blinkCount,
    2. bool isSmiling
    )?,
  7. VoidCallback? onTryAgain,
  8. dynamic onMaxRetryReached(
    1. int attemptCount
    )?,
})

Creates liveness check callbacks.

Implementation

const LivenessCheckCallbacks({
  this.onSuccess,
  this.onError,
  this.onErrorWithType,
  this.onCancel,
  this.onPhotoTaken,
  this.onProgressUpdate,
  this.onTryAgain,
  this.onMaxRetryReached,
});