<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AppEntityContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents0A13EntityContextV"
  },
  "title" : "AppEntityContext"
}
-->

# AppEntityContext

The context used to scope suggested entity donations to a specific domain.

```
struct AppEntityContext
```

## Overview

Pass a `AppEntityContext` when donating or removing entities via
[`RelevantEntities`](/documentation/AppIntents/RelevantEntities) to associate suggestions with the appropriate
part of the app experience.

Use extensions defined by framework overlays (such as the HealthKit overlay)
to create context values for specific domains.

## Topics

### Type Methods

[`static func audio(AudioContext) -> AppEntityContext`](/documentation/AppIntents/AppEntityContext/audio(_:))

An audio-related context.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)