Contents

exported(as:)

Exports this entity’s content as an IntentFile.

Declaration

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.