init(targetNote:content:)
Initializes the intent object with the specified note and content.
Declaration
init(targetNote: INNote?, content: INNoteContent?)Parameters
- targetNote:
The note to receive the additional content.
- content:
The content to add to the note. You may specify text or image content.
Return Value
An initialized intent object or nil if the object could not be created.
Discussion
Normally, you don’t create instances of this class yourself. Instead, SiriKit creates instances when the user asks to append content to a note. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.