Initializer

init(acceptableTypeIdentifiers:)

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

Declaration

convenience init(acceptableTypeIdentifiers: [String])

Parameters

acceptableTypeIdentifiers

An array of uniform type identifier (UTI) strings.

Return Value

A paste configuration that is initialized with the specified UTI strings.

Discussion

Specify the acceptable UTIs in descending order of fidelity. The UTI that provides the richest data representation should be first in the list. For instance, if the data to paste is contact information, list the vCard UTI first, followed by the plain text UTI.

See Also

Initializing a Paste Configuration

init()

Initializes a new paste configuration.

init(forAccepting: NSItemProviderReading.Type)

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