---
title: "init(identifier:title:customIndexingKey:asyncGetter:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/entityproperty/init(identifier:title:customindexingkey:asyncgetter:)-8xa8o"
---

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

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

## Declaration

```swift
convenience init<Entity>(identifier: String, title: LocalizedStringResource, customIndexingKey: CSCustomAttributeKey, asyncGetter: @escaping @Sendable (Entity) async throws -> Value) where Entity : AppEntity, Value.ValueType == EntityCollection<Entity>
```

## Parameters

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