Instance Property

runningActivity

The currently running activity within the currently active context.

Declaration

var runningActivity: CLSActivity? { get }

Discussion

This value is nil if there is no currently running activity.

If your deployment target is iOS 11.4 or later, you can have more than one activity running concurrently. When you do this, the runningActivity property holds the most recently started activity.

See Also

Accessing Specific Contexts and Activities

var mainAppContext: CLSContext

The app’s top-level context.

var activeContext: CLSContext?

The currently active context.

func completeAllAssignedActivities(matching: [String])

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