A block that receives the item provider’s data.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Use this block to receive data from a call to the
load method. This block takes the following parameters:
The item to be loaded. When specifying your block, set the type of this parameter to the specific data type you want. For example, when requesting text data, you might set the type to
NSAttributed. The item provider attempts to coerce the data to the class you specify.
A pointer to an error object for receiving information about any problems that occurred when loading the data.