Contents

registerObject(_:visibility:)

Adds representations of a specified object to an item provider, based on the object’s implementation of the item provider writing protocol, and adhering to a visibility specification.

Declaration

func registerObject(_ object: any NSItemProviderWriting, visibility: NSItemProviderRepresentationVisibility)

Discussion

If a representation for a given UTI is already registered, it is preserved (specifically, duplicate representations are ignored).

See Also

Registering objects