<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/AnyAppEntity/exported(as:)-8qa8k",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents Testing",
      "AppIntentsTesting"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting03AnyA6EntityV8exported2as0aB010IntentFileV22UniformTypeIdentifiers6UTTypeVSg_tYaKF"
  },
  "title" : "exported(as:)"
}
-->

# exported(as:)

Exports this entity’s content as an `IntentFile`.

```
func exported(as contentType: UTType? = nil) async throws -> IntentFile
```

## Parameters

`contentType`

The desired export format (e.g., `.json`, `.png`).
Pass `nil` to use the entity’s default representation.

## Return Value

The exported content as an `IntentFile`.

## Discussion

When no content type is specified, the entity’s first registered `TransferRepresentation`
is used.

The returned file contains the exported data and, when available, a sandbox-extended
file URL that can be passed directly as a parameter to another intent.

> Throws: If the entity does not conform to `Transferable` or does not support
> the requested format.

---

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)