---
title: "searchableItems(forIdentifiers:protectionClass:searchableItemsHandler:)"
framework: corespotlight
role: symbol
role_heading: Instance Method
path: "corespotlight/cssearchableindexdelegate/searchableitems(foridentifiers:protectionclass:searchableitemshandler:)"
---

# searchableItems(forIdentifiers:protectionClass:searchableItemsHandler:)

## Declaration

```swift
optional func searchableItems(forIdentifiers identifiers: [String], protectionClass: FileProtectionType, searchableItemsHandler: @escaping @Sendable ([CSSearchableItem]) -> Void)
```

```swift
optional func searchableItems(forIdentifiers identifiers: [String], protectionClass: FileProtectionType) async -> [CSSearchableItem]
```

## See Also

### Providing data for an item

- [searchableItems(forIdentifiers:searchableItemsHandler:)](corespotlight/cssearchableindexdelegate/searchableitems(foridentifiers:searchableitemshandler:).md)
- [data(for:itemIdentifier:typeIdentifier:)](corespotlight/cssearchableindexdelegate/data(for:itemidentifier:typeidentifier:).md)
- [fileURL(for:itemIdentifier:typeIdentifier:inPlace:)](corespotlight/cssearchableindexdelegate/fileurl(for:itemidentifier:typeidentifier:inplace:).md)
