Asks the delegate whether it can handle the session’s drag items.
- iOS 11.0+
- Mac Catalyst 13.0+
The interaction that called this method.
The current drop session.
true doesn't mean the interaction will accept the drop. Instead, it tells the system that the interaction has interest in, and can handle, the drop session.
To determine if the interaction can handle the session, check the data type of session's drag items. For instance, if you're interested in drop activities that contain images, you can do the following:
You can also be more specific by using a uniform type identifier (UTI) for the data type. For instance, if you’re interested in only PNG images, use the UTI for PNG files: