Class

BGTask

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

Declaration

@interface BGTask : NSObject

Topics

Reading Task Information

identifier

The string identifier of the task.

Configuring a Task

expirationHandler

A handler called shortly before the task’s background time expires.

- setTaskCompletedWithSuccess:

Informs the background task scheduler that the task is complete.

Relationships

Inherits From

See Also

Task Management

BGProcessingTask

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

BGAppRefreshTask

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