loadDataRepresentation(forTypeIdentifier:completionHandler:)
Asynchronously copies the provided, typed data into a generic data object, returning a progress object.
Declaration
func loadDataRepresentation(forTypeIdentifier typeIdentifier: String, completionHandler: @escaping @Sendable (Data?, (any Error)?) -> Void) -> ProgressDiscussion
If the source app provides a folder URL, the Data object contains a zip archive with the folder as its top-level entry.
See Also
Loading the provider’s contents
loadItem(forTypeIdentifier:options:completionHandler:)loadDataRepresentation(for:completionHandler:)loadFileRepresentation(forTypeIdentifier:completionHandler:)loadFileRepresentation(for:openInPlace:completionHandler:)loadInPlaceFileRepresentation(forTypeIdentifier:completionHandler:)loadObject(ofClass:completionHandler:)loadObject(ofClass:completionHandler:)loadTransferable(type:completionHandler:)