Instance Method

initWithTitle:content:groupName:

Initializes the intent object with the specified note content.

Declaration

- (instancetype)initWithTitle:(INSpeakableString *)title content:(INNoteContent *)content groupName:(INSpeakableString *)groupName;

Parameters

title

The title text to apply to the note.

content

The content of the note.

groupName

The name of the group in which to store the note. Group names correspond to folders or other means of organizing notes within your app.

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 create a note. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.