canReadObject(forClasses:options:)
Returns a Boolean value that indicates whether the receiver contains any items that can be represented as an instance of any class in a given array.
Declaration
func canReadObject(forClasses classArray: [AnyClass], options: [NSPasteboard.ReadingOptionKey : Any]? = nil) -> BoolParameters
- classArray:
An array of class objects.
Classes in the array must conform to the Nspasteboardreading protocol.
- options:
A dictionary that specifies options to refine the search for pasteboard items, for example to restrict the search to file URLs with particular content types. For valid dictionary keys, see
Pasteboard Reading Options.
Return Value
true if the receiver contains any items that can be represented as an instance of a class specified in classArray, otherwise false.