Marks all of the assigned and currently active activities for the given context path as complete.
- iOS 12.2+
Schoolwork displays a per-student Done indicator to teachers, along with statistics about task completion for the entire class. Students set this indicator in their own view of the Schoolwork app. Use the
complete method to set the Done status programmatically.
Because you’re taking an action on behalf of the student when you call this method, Schoolwork shows the student a momentary alert in your app’s interface at that time.
Call this method only when you know that the task is complete and the student can’t or won’t work on the task any further. This might be because the task’s allotted time elapses or because the student submits all the required information to the teacher. Alternatively, if you already have a submit button in your interface, you can call this method from that button’s handler.