Instance Property

items

An array of drag items in the drag session or drop session.

Required.

Declaration

@property(nonatomic, readonly) NSArray<UIDragItem *> *items;

Discussion

The drag item's NSItemProvider object doesn't load the data for the item until the drop interaction happens. However, before the interaction happens, you can get the item's registered type identifiers and metadata. The data is available to you only in the drop interaction delegate's dropInteraction:performDrop: method.

See Also

Checking for Drag Items

- canLoadObjectsOfClass:

Returns a Boolean value that indicates whether at least one drag item in the session can create an instance of the specified class.

Required.

- hasItemsConformingToTypeIdentifiers:

Returns a Boolean value that indicates whether at least one drag item in the session conforms to at least one of the specified UTIs.

Required.