Protocol

NSItemProviderReading

The protocol you implement on a class to allow an item provider to create an instance of the class.

Overview

A destination app uses an object that conforms to this protocol to consume pasted or dropped items.

Topics

Creating an Object from a Pasted or Dropped Item

static func object(withItemProviderData: Data, typeIdentifier: String)

Creates a new instance of a class using the given data and UTI string.

Required.

Getting the Readable Type Identifiers

static var readableTypeIdentifiersForItemProvider: [String]

An array of UTI strings representing the data types supported by the class.

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 protocol you implement on a class to allow an item provider to retrieve data from an instance of the class.