Adds representations of a specified object to an item provider, based on the object’s implementation of the NSItem
protocol and adhering to a visibility specification.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
Framework
- Foundation
Declaration
func registerObject(_ object: NSItem Provider Writing, visibility: NSItem Provider Representation Visibility)
Discussion
If a representation for a given UTI is already registered, it is preserved (specifically, duplicate representations are ignored).