Contents

resolveTargetNote(for:with:)

Resolves the note that receives the new content.

Declaration

optional func resolveTargetNote(for intent: INAppendToNoteIntent, with completion: @escaping  @Sendable (INNoteResolutionResult) -> Void)
optional func resolveTargetNote(for intent: INAppendToNoteIntent) async -> INNoteResolutionResult

Parameters

  • intent:

    The intent object containing 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 at some point during your implementation of this method. This handler has no return value and takes the following parameter:

    resolutionResult

    The object containing the details of your proposed resolution. For successful resolutions, create a resolution object with the Innote object containing the content that you intend to modify.

Discussion

Implement this method to resolve which note receives new content. Use the intent object to identify which note the user wants to modify. If the intent doesn’t identify a specific note, you might want to prompt the user to specify a value or you might indicate success and select a default note.

See Also

Resolving the Intent Parameters