Protocol

NSItemProviderReading

The interface for supporting instantiation of objects using data loaded by an item provider, used by a destination app when consuming pasted or dropped items.

Overview

The following classes automatically support the NSItemProviderReading protocol: NSString, NSAttributedString, NSURL, UIColor, and UIImage.

Topics

Type Properties

static var readableTypeIdentifiersForItemProvider: [String]

Implement to return an array of uniform type identifier (UTI) strings representing the data type representations available from an item provider.

Required.

See Also

Item Providers

class NSItemProvider

An item provider for conveying data or a file between processes during drag and drop or copy/paste activities, or from a host app to an app extension.

protocol NSItemProviderWriting

The interface for supporting initialization of an item provider based on an object, used by a source app when providing copied or dragged items.

Beta

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