Initializes the intent object with information about the task and the changes that you want to make.
- iOS 11.0–13.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 4.0–6.0Deprecated
The task that you want to modify.
The new status for the task.
The location-based trigger, if any, that you want to apply to the task.
The time-based trigger, if any, that you want to apply to the task.
An initialized intent object or
nil if the object could not be created.
Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when the user asks to set the attributes of a task. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.