Class

UIPasteConfiguration

The interface that an object implements to declare its ability to accept specific data types for pasting and for drag and drop activities.

Declaration

class UIPasteConfiguration : NSObject

Topics

Initializing a Paste Configuration

init()

Initializes a new paste configuration.

init(acceptableTypeIdentifiers: [String])

Initializes a new paste configuration with a specified array of acceptable UTIs.

init(forAccepting: NSItemProviderReading.Type)

Initializes a new paste configuration with the UTIs declared as supported by a specified class.

Getting Acceptable Type Identifiers

var acceptableTypeIdentifiers: [String]

An array of UTI strings that specify the types accepted by the paste configuration.

Adding Acceptable Type Identifiers

func addAcceptableTypeIdentifiers([String])

Adds an array of UTI strings to a paste configuration, increasing the variety of types the paste configuration accepts.

func addTypeIdentifiers(forAccepting: NSItemProviderReading.Type)

Expands the array of accepted UTIs for a paste configuration, based on those declared as supported by a specified class.

Relationships

Inherits From

See Also

Pasteboard

class UIPasteboard

An object that helps a user share data from one place to another within your app, and from your app to other apps.

protocol UIPasteConfigurationSupporting

The interface that determines whether a responder object supports paste configuration.

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