assessmentSession(_:wasInterruptedWithError:)
Tells the delegate that a system failure interrupted the session.
Declaration
optional func assessmentSession(_ session: AEAssessmentSession, wasInterruptedWithError error: any Error)Parameters
- session:
The session that failed.
- error:
An error that provides information about the interruption.
Discussion
If one or more subsystems fail during a session, the session tells its delegate by calling the assessmentSession(_:wasInterruptedWithError:) method. If your app receives this callback, immediately stop the assessment, hide all sensitive content, and end the session. Because it might take time for your app to stop the assessment, the session relies on your app to call the end() method: