Instance Method

endActivity(_:)

Ends the given activity.

Declaration

func endActivity(_ activity: NSObjectProtocol)

Parameters

activity

An activity object returned by beginActivity(options:reason:).

See Also

Managing Activities

func performActivity(options: ProcessInfo.ActivityOptions, reason: String, using: () -> Void)

Synchronously perform an activity defined by a given block using the given options.

func performExpiringActivity(withReason: String, using: (Bool) -> Void)

Performs the specified block asynchronously and notifies you if the process is about to be suspended.