init(forAccepting:)
Initializes a new paste configuration with the UTIs declared as supported by a specified class.
Declaration
convenience init(forAccepting aClass: any NSItemProviderReading.Type)Parameters
- aClass:
A class conforming to the Nsitemproviderreading protocol.
Return Value
A paste configuration initialized with acceptable uniform type identifiers (UTIs) supported by the specified class.
Discussion
When you use this initializer, the property readableTypeIdentifiersForItemProvider, implemented on aClass, is used to determine the acceptable UTIs.