---
title: "init(identifier:title:indexingKey:asyncGetter:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/entityproperty/init(identifier:title:indexingkey:asyncgetter:)-2ogte"
---

# init(identifier:title:indexingKey:asyncGetter:)

Creates an app intent entity property.  Do not call this directly, use @Property

## Declaration

```swift
convenience init<Entity>(identifier: String, title: LocalizedStringResource, indexingKey: PartialKeyPath<CSSearchableItemAttributeSet>, asyncGetter: @escaping @Sendable (Entity) async throws -> Value) where Entity : AppEntity
```

## Parameters

- `identifier`: The identifier of the property
- `title`: A word or short phrase summarizing this property.
- `indexingKey`: A Spotlight attribute set key mapping for this property.
- `asyncGetter`: The getter reference for the property
