Contents

init(identifier:indexingKey:asyncGetter:)

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

Declaration

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

Parameters

  • identifier:

    The identifier of the property

  • indexingKey:

    A Spotlight attribute set key mapping for this property.

  • asyncGetter:

    The async getter for the property