Initializes a task object with the specified content and triggers.
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
The title text that describes the task. This string is what the user enters for the task details.
The current state of the task. Tasks can be completed or not completed.
Information about how the task behaves in your app. Use this parameter to specify whether the task can be marked as completed.
A location-based trigger that reminds the user to complete the task.
A time-based trigger that reminds the user to complete the task.
The date on which the task was initially created.
The last date on which the task was updated.
The unique identifier that your app uses to identify the task.
An initialized task object or
nil if the object could not be created.