<!--
{
  "availability" : [
    "iOS: 11.2.0 - 13.0.0",
    "iPadOS: 11.2.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 4.2.0 - 6.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSearchForNotebookItemsIntent/init(title:content:itemType:status:location:locationSearchType:dateTime:dateSearchType:notebookItemIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSearchForNotebookItemsIntent(im)initWithTitle:content:itemType:status:location:locationSearchType:dateTime:dateSearchType:notebookItemIdentifier:"
  },
  "title" : "init(title:content:itemType:status:location:locationSearchType:dateTime:dateSearchType:notebookItemIdentifier:)"
}
-->

# init(title:content:itemType:status:location:locationSearchType:dateTime:dateSearchType:notebookItemIdentifier:)

Initializes the intent object with the specified search parameters.

```
convenience init(title: INSpeakableString?, content: String?, itemType: INNotebookItemType, status: INTaskStatus, location: CLPlacemark?, locationSearchType: INLocationSearchType, dateTime: INDateComponentsRange?, dateSearchType: INDateSearchType, notebookItemIdentifier: String?)
```

## Parameters

`title`

The text to search for in the title of the note, task, or task list.

`content`

The text to search for in the content of a note.

`itemType`

The type of items to search. Use this parameter to restrict your search to items of the specified type.

`status`

The completion status of the task. Use this parameter to restrict your search to tasks whose status matches the specified value.

`location`

The location value to use during your search. When the `locationSearchType` parameter is [`INLocationSearchType.byLocationTrigger`](/documentation/Intents/INLocationSearchType/byLocationTrigger), use this parameter to restrict your search to reminders that are triggered near the specified location.

`locationSearchType`

The type of location search to perform. Use this parameter to specify when a search for location-based reminders should occur.

`dateTime`

The time value to use during your search. Use the value of the `dateSearchType` parameter to determine how to apply the value of this parameter.

`dateSearchType`

The type of date-based search to perform. Use this parameter to specify when to search for notes with the specified creation or modification date or when to search for reminders based on the date on which they are delivered.

`notebookItemIdentifier`

The unique string that your app uses to identify the notebook item.

## Return Value

An initialized intent object or `nil` if the object could not be created.

## Discussion

Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when the user asks to search for notes, task lists, tasks, or reminders. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths. When doing so, specify only the search parameters that you want to include and provide `nil` or unknown values for other parameters.

---

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)