---
title: "assessmentSessionDidEnd(_:)"
framework: automaticassessmentconfiguration
role: symbol
role_heading: Instance Method
path: "automaticassessmentconfiguration/aeassessmentsessiondelegate/assessmentsessiondidend(_:)"
---

# assessmentSessionDidEnd(_:)

Tells the delegate that the session ended.

## Declaration

```swift
optional func assessmentSessionDidEnd(_ session: AEAssessmentSession)
```

## Parameters

- `session`: The session that ended.

## Discussion

Discussion After your app calls a session’s end() method, the system asynchronously restores the system to its normal state and then calls its delegate’s assessmentSessionDidEnd(_:) method. Confirm to the user that the assessment has stopped only after receiving this callback.

## See Also

### Responding to session start and stop

- [assessmentSessionDidBegin(_:)](automaticassessmentconfiguration/aeassessmentsessiondelegate/assessmentsessiondidbegin(_:).md)
- [assessmentSession(_:failedToBeginWithError:)](automaticassessmentconfiguration/aeassessmentsessiondelegate/assessmentsession(_:failedtobeginwitherror:).md)
- [assessmentSession(_:wasInterruptedWithError:)](automaticassessmentconfiguration/aeassessmentsessiondelegate/assessmentsession(_:wasinterruptedwitherror:).md)
