Handles the creation of a task list.
Required.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
Framework
- Intents
Declaration
- (void)handleCreateTaskList:(INCreate Task List Intent *)intent completion:(void (^)(INCreate Task List Intent Response *response))completion;
Parameters
intent
The intent object containing details about the user's request. The information in this object has already been resolved and confirmed by your handler object.
completion
The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:
- response
The
INCreate
object containing the status of the request. This parameter must not beTask List Intent Response nil
.
Discussion
In your implementation of this method, create the task list described by the intent
parameter, create a response object with any relevant details, and call the provided completion handler.