Instance Property


The currently active context.


var activeContext: CLSContext? { get }


This value is nil if there is no currently active context.

To activate a context when a student begins working on the content that the context represents, call its becomeActive() method. To deactivate a context when the student finishes, call its resignActive() function. Only one context may be active at a time, so if you activate a context, the system automatically causes any previously active context to resign.

See Also

Accessing Specific Contexts and Activities

var mainAppContext: CLSContext

The app’s top-level context.

var runningActivity: CLSActivity?

The currently running activity within the currently active context.

func completeAllAssignedActivities(matching: [String])

Marks all of the assigned and currently active activities for the given context path as complete.