Contents

contains(pasteboardTypes:inItemSet:)

Returns whether the specified pasteboard items contain data of the given representation types.

Declaration

func contains(pasteboardTypes: [String], inItemSet itemSet: IndexSet?) -> Bool

Parameters

  • pasteboardTypes:

    An array of strings, with each string identifying a representation type. Typically you use UTIs as pasteboard types.

  • itemSet:

    An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.

Return Value

true if the pasteboard items identified by itemSet have data corresponding to the representation types specified by pasteboardTypes; otherwise, returns false.

See Also

Related Documentation

Determining types of pasteboard items