resolveTasks(for:with:)
Resolves the tasks to snooze.
Declaration
optional func resolveTasks(for intent: INSnoozeTasksIntent, with completion: @escaping @Sendable ([INSnoozeTasksTaskResolutionResult]) -> Void)optional func resolveTasks(for intent: INSnoozeTasksIntent) async -> [INSnoozeTasksTaskResolutionResult]Parameters
- intent:
The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- completion:
The handler block to execute with the resolution. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:
- resolutionResult
The object that contains the details of your proposed resolution. For a successful resolution, create a resolution object with the Intask object representing the task list that you intend to use.
Discussion
Implement this method to resolve the tasks to snooze. Use the intent object to obtain information about the tasks to snooze. Use the information in the INTask object to look up the corresponding task information in your app’s data structures. Return a resolution that includes as much information as you have available about the task.