showErrorDialog

private final Unit showErrorDialog(SenseCryptSdkException error)

Show an error dialog to the user. It handles SenseCryptSdkException.LivenessFailed, SenseCryptSdkException.ExtremeHeadPoseDetected, and SenseCryptSdkException.CaptureSessionTimeOut via the UIHelper methods. It also handles unrecoverable errors via the UIHelper.processUnrecoverableError method. For recoverable errors, it shows a dialog using the showRecoverableErrorDialog method.

Parameters

error

The error that occurred