---
title: end()
framework: automaticassessmentconfiguration
role: symbol
role_heading: Instance Method
path: automaticassessmentconfiguration/aeassessmentsession/end()
---

# end()

Ends an assessment session.

## Declaration

```swift
func end()
```

## Discussion

Discussion Before calling the end() method, be sure to stop the assessment and hide any sensitive information. After calling the method, wait until the session’s delegate receives the assessmentSessionDidEnd(_:) method before you report the assessment as complete to the user.

## See Also

### Starting and stopping a session

- [begin()](automaticassessmentconfiguration/aeassessmentsession/begin().md)
- [isActive](automaticassessmentconfiguration/aeassessmentsession/isactive.md)
