An abstract class for representing task requests.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
Framework
- Background
Tasks
Declaration
class BGTaskRequest : NSObject
An abstract class for representing task requests.
SDKs
Framework
class BGTaskRequest : NSObject
var earliest Begin Date: Date?
The earliest date and time at which to run the task.
var identifier: String
The identifier of the task associated with the request.
class BGProcessing Task Request
A request to launch your app in the background to execute a processing task that can take minutes to complete.
class BGApp Refresh Task Request
A request to launch your app in the background to execute a short refresh task.