Protocol

INSearchForNotebookItemsIntentHandling

The handler interface for searching for notes, tasks, and reminders.

Declaration

@protocol INSearchForNotebookItemsIntentHandling

Overview

Use the methods of the INSearchForNotebookItemsIntentHandling protocol to resolve, confirm, and handle requests to search for notes, tasks, and reminders in your app’s content. Adopt this protocol in an object of your Intents extension that’s capable of performing the search and returning the search results to SiriKit.

Siri delivers an INSearchForNotebookItemsIntent object to your handler when the user asks to search for items in your app. The provided intent object contains the search parameters provided by the user. Use the methods of this protocol to resolve the parameters and return the search results.

Topics

Resolving the Intent Parameters

- resolveTitleForSearchForNotebookItems:withCompletion:

Resolves the string to use when searching the title of notes, tasks, or reminders.

- resolveContentForSearchForNotebookItems:withCompletion:

Resolves the string to use when searching the content of notes.

- resolveStatusForSearchForNotebookItems:withCompletion:

Resolves the status value to use during the search.

- resolveDateSearchTypeForSearchForNotebookItems:withCompletion:

Resolves how to use a date value during the search.

- resolveDateTimeForSearchForNotebookItems:withCompletion:

Resolves the date to use during a date-based search.

- resolveLocationForSearchForNotebookItems:withCompletion:

Resolves how to use a location value during the search.

- resolveLocationSearchTypeForSearchForNotebookItems:withCompletion:

Resolves the location to use during a location-based search.

- resolveTaskPriorityForSearchForNotebookItems:withCompletion:

Resolves the priority to use during a priority-based search.

Beta
- resolveTemporalEventTriggerTypesForSearchForNotebookItems:withCompletion:

Resolves the trigger type to use during a temporal-based search.

Beta

Confirming the Response

- confirmSearchForNotebookItems:completion:

Confirms whether you can perform the search.

Handling the Intent

- handleSearchForNotebookItems:completion:

Performs the search and deliver the results to SiriKit.

Required.

Relationships

Inherits From

See Also

Search for Notebook Items

INSearchForNotebookItemsIntent

A request to search for notes, tasks, and reminders.

INSearchForNotebookItemsIntentResponse

Your app’s response to a request to search for notes, tasks, or reminders.

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