Class

INCreateNoteIntentResponse

Your app’s response to a request to create a note.

Declaration

class INCreateNoteIntentResponse : INIntentResponse

Overview

Use an INCreateNoteIntentResponse object to return information about the note that your app created. Siri communicates the information from your app’s response to the user at appropriate times.

You create an INCreateNoteIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INCreateNoteIntentHandling.

Topics

Initializing the Response Object

init(code: INCreateNoteIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INCreateNoteIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INCreateNoteIntentResponseCode

Constants indicating the state of the response.

Accessing the Note Content

var createdNote: INNote?

The details of the note that you created.

Relationships

Inherits From

Conforms To

See Also

Create Note

protocol INCreateNoteIntentHandling

The handler interface for creating notes.

class INCreateNoteIntent

A request to create a new note.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software