---
title: "resolveItemType(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insearchfornotebookitemsintenthandling/resolveitemtype(for:with:)"
---

# resolveItemType(for:with:)

Resolves the type of items to search.

## Declaration

```swift
optional func resolveItemType(for intent: INSearchForNotebookItemsIntent, with completion: @escaping @Sendable (INNotebookItemTypeResolutionResult) -> Void)
```

```swift
optional func resolveItemType(for intent: INSearchForNotebookItemsIntent) async -> INNotebookItemTypeResolutionResult
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve the type of items to search for. Use this method to verify that you can search for items of the specified type. If you support searching for the items, return a successful resolution with that item type. For types you do not support, you can return a successful resolution with a type that you do support. Alternatively, if you do not want to search an unsupported type, return a not required resolution from this method and use your confirmation method to indicate that a failure occurred.

## See Also

### Resolving the Intent Parameters

- [resolveTitle(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetitle(for:with:).md)
- [resolveContent(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvecontent(for:with:).md)
- [resolveStatus(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvestatus(for:with:).md)
- [resolveDateSearchType(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvedatesearchtype(for:with:).md)
- [resolveDateTime(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvedatetime(for:with:).md)
- [resolveLocation(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvelocation(for:with:).md)
- [resolveLocationSearchType(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvelocationsearchtype(for:with:).md)
- [resolveTaskPriority(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetaskpriority(for:with:).md)
- [resolveTemporalEventTriggerTypes(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetemporaleventtriggertypes(for:with:).md)
