<!--
{
  "availability" : [
    "iOS: 11.0.0 - 27.0.0",
    "iPadOS: 11.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 4.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSearchForNotebookItemsIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSearchForNotebookItemsIntentResponse"
  },
  "title" : "INSearchForNotebookItemsIntentResponse"
}
-->

# INSearchForNotebookItemsIntentResponse

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

```
class INSearchForNotebookItemsIntentResponse
```

## Overview

Use an [`INSearchForNotebookItemsIntentResponse`](/documentation/Intents/INSearchForNotebookItemsIntentResponse) object to return the search results requested by the user. Siri communicates the information from your response to the user at appropriate times.

You create an [`INSearchForNotebookItemsIntentResponse`](/documentation/Intents/INSearchForNotebookItemsIntentResponse) object in the [`confirm(intent:completion:)`](/documentation/Intents/INSearchForNotebookItemsIntentHandling/confirm(intent:completion:)) and [`handle(intent:completion:)`](/documentation/Intents/INSearchForNotebookItemsIntentHandling/handle(intent:completion:)) methods of your handler object. For more information about implementing your handler object, see [`INSearchForNotebookItemsIntentHandling`](/documentation/Intents/INSearchForNotebookItemsIntentHandling).

## Topics

### Initializing the Response Object

[`-  initWithCode:userActivity:`](/documentation/Intents/INSearchForNotebookItemsIntentResponse/init(code:userActivity:))

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

### Getting the Response Code

[`code`](/documentation/Intents/INSearchForNotebookItemsIntentResponse/code)

The code indicating whether your app successfully handled the intent.

[`INSearchForNotebookItemsIntentResponseCode`](/documentation/Intents/INSearchForNotebookItemsIntentResponseCode)

Constants indicating the state of the response.

### Specifying the Search Results

[`notes`](/documentation/Intents/INSearchForNotebookItemsIntentResponse/notes)

The notes found by the search.

[`taskLists`](/documentation/Intents/INSearchForNotebookItemsIntentResponse/taskLists)

The task lists found by the search.

[`tasks`](/documentation/Intents/INSearchForNotebookItemsIntentResponse/tasks)

The individual tasks found by the search.

[`sortType`](/documentation/Intents/INSearchForNotebookItemsIntentResponse/sortType)

An indicator of how you sorted the search results.

[`INSortType`](/documentation/Intents/INSortType)

Constants indicating how the intent sorted the search results.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`INIntentResponse`](/documentation/Intents/INIntentResponse)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)