exported(as:)
Exports this transient entity’s content as an IntentFile.
Declaration
func exported(as contentType: UTType? = nil) async throws -> IntentFileParameters
- contentType:
The desired export format (e.g.,
.json,.png). Passnilto 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 exported file can be passed as a parameter to another intent or used to verify the entity’s export format. To resolve exported content back into an entity, use AppEntityDefinition/resolved(from:)-8f2x on a non-transient entity definition — transient entities are not resolvable by design since they have no stable identifier.