Contents

runningActivity

The currently running activity within the currently active context.

Declaration

var runningActivity: CLSActivity? { get }

Mentioned in

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