Lazily registers an item, according to the
NSItem type coercion policy.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A string that represents the desired UTI.
A block capable of returning the data item as the specified type. For information about implementing this block, see
Provider .Load Handler
Use this method to register blocks that can take the item provider’s file or data object and convert it to a specific data format. Your
load block is executed when a client passes the same
type string to the
load method. In the implementation of your block, coerce the data to the specified type and call the provided completion handler. You must call the completion handler, either with the requested data or with an error.
Item providers know how to coerce known types of objects, such as images or strings. Use this method to register blocks to coerce your custom data types.