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.

Overview

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

Topics

Instance Properties

var writableTypeIdentifiersForItemProvider: [String]

Implement to return an array of uniform type identifier (UTI) strings specifying the data type representations eligible to be loaded by an item provider (instance property version).

Type Properties

static var writableTypeIdentifiersForItemProvider: [String]

Implement to return an array of uniform type identifier (UTI) strings specifying the data type representations eligible to be loaded by an item provider (class property version).

Required.

Instance Methods

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 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.

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