The interface that an object implements to declare its ability to accept specific data types for pasting and for drag and drop activities.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
class UIPasteConfiguration : NSObject
The interface that an object implements to declare its ability to accept specific data types for pasting and for drag and drop activities.
SDKs
Framework
class UIPasteConfiguration : NSObject
init()
Initializes a new paste configuration.
init(acceptable Type Identifiers: [String])
Initializes a new paste configuration with a specified array of acceptable UTIs.
init(for Accepting: NSItem Provider Reading .Type)
Initializes a new paste configuration with the UTIs declared as supported by a specified class.
var acceptable Type Identifiers: [String]
An array of UTI strings that specify the types accepted by the paste configuration.
func add Acceptable Type Identifiers([String])
Adds an array of UTI strings to a paste configuration, increasing the variety of types the paste configuration accepts.
func add Type Identifiers(for Accepting: NSItem Provider Reading .Type)
Expands the array of accepted UTIs for a paste configuration, based on those declared as supported by a specified class.
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 UIPaste Configuration Supporting
The interface that determines whether a responder object supports paste configuration.