Contents

handle(intent:completion:)

Handles appending content to a note.

Declaration

func handle(intent: INAppendToNoteIntent, completion: @escaping  @Sendable (INAppendToNoteIntentResponse) -> Void)
func handle(intent: INAppendToNoteIntent) async -> INAppendToNoteIntentResponse

Parameters

  • intent:

    The intent object containing details about the user’s request. Your handler object has already resolved and confirmed the information in this 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 Inappendtonoteintentresponse object containing the status of the request. This parameter must not be nil.

Discussion

In your implementation of this method, update the note’s content in your app, create a response object with the updated note information, and call the provided completion handler.