One Logo Pool Ball
CoreTransferable · IOS API REFERENCE

TransferRepresentation

protocol · iOS 16.0+ · SDK 27.1

protocol TransferRepresentation<Item> : Sendable

A declarative description of the process of importing and exporting a transferable item. Combine multiple existing transfer representations to compose a single transfer representation that describes how to transfer an item in multiple scenarios. The following shows a `Greeting` type that transfers both as a `Codable` type and by proxy through its `message` string. import UniformTypeIdentifiers struct Greeting: Codable, Transferable { let message: String var displayInAllCaps: Bool = false static var transferRepresentation: some TransferRepresentation { CodableRepresentation(contentType: .greeting) ProxyRepresentation(exporting: \.message) } } extension UTType { static let greeting = UTType(exportedAs: "com.example.greeting") }

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

TransferRepresentation.visibility(_:)

This protocol needs associated types that cannot yet cross the bridge.

TransferRepresentation.exportingCondition(_:)

callback cannot propagate synchronous failure

TransferRepresentation.suggestedFileName(_:)

This protocol needs associated types that cannot yet cross the bridge.

TransferRepresentation.suggestedFileName(_:)

callback cannot propagate synchronous failure

All CoreTransferable types →