A unique identifier for an app entity instance within an application.
`AttributedEntityIdentifier` combines type and instance information to create a complete
identifier that can uniquely identify any app entity instance. This identifier
consists of two parts:
1. An entity type identifier that distinguishes different kinds of entities
2. An instance identifier that distinguishes individual instances of the same type
This structure enables the AppIntents framework to reference and retrieve specific
entity instances across the system.
Creates an attributed entity identifier with the specified type and instance identifiers.
- Parameters:
- entityType: The type identifier for this entity.
- instanceIdentifier: The string that uniquely identifies this specific instance.
get · iOS 27.0+
entityType
TypeScript
get entityType(): AttributedTypeIdentifier
Swift declaration
let entityType: AttributedTypeIdentifier
The type identifier that defines what kind of entity this is.
This identifier includes information about the entity's type and any
relevant attributes associated with it, uniquely identifying the
entity type within the application's bundle.
get · iOS 27.0+
instanceIdentifier
TypeScript
get instanceIdentifier(): string
Swift declaration
let instanceIdentifier: String
The string that uniquely identifies this specific entity instance.
This identifier distinguishes between different instances of the same
entity type. It must be unique within the scope of its entity type.