Instance Method

registerObject(_:visibility:)

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

Declaration

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

Discussion

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

See Also

Providing the Item’s Data

func registerObject(ofClass: NSItemProviderWriting.Type, visibility: NSItemProviderRepresentationVisibility, loadHandler: (@escaping (NSItemProviderWriting?, Error?) -> Void) -> Progress?)

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

var suggestedName: String?

The filename to use when writing the provided data to a file on disk.