exported(as:)
Exports this 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 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.