Class

BGProcessingTask

A time-consuming processing task that runs while the app is in the background.

Declaration

class BGProcessingTask : BGTask

Overview

Use processing tasks for long data updates, processing data, and app maintenance. Although processing tasks can run for minutes, the system can interrupt the process. Add an expiration handler by setting expirationHandler for any required cleanup.

Executing processing tasks requires setting the processing UIBackgroundModes capability. For information on setting this capability, see BGTaskScheduler.

Processing tasks run only when the device is idle. The system terminates any background processing tasks running when the user starts using the device. Background refresh tasks are not affected.

Relationships

Inherits From

Conforms To

See Also

Task Management

class BGAppRefreshTask

An object representing a short task typically used to refresh content that’s run while the app is in the background.

Beta
class BGTask

An abstract class representing a task that’s run while the app is in the background.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software