Instance Method

loadData(withTypeIdentifier:forItemProviderCompletionHandler:)

Loads data of a particular type, identified by the given UTI.

Required.

Declaration

func loadData(withTypeIdentifier typeIdentifier: String, forItemProviderCompletionHandler completionHandler: @escaping (Data?, Error?) -> Void) -> Progress?

Parameters

typeIdentifier

The uniform type identifier (UTI) identifying the type of data to load.

completionHandler

The handler that's called after the data is loaded.

Return Value

The progress of the data load process.

Discussion

When the system calls this method, the typeIdentifier parameter is set to one of the elements in the writableTypeIdentifiersForItemProvider array.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software