writePlaceholder(at:withMetadata:)
Writes a document placeholder with the provided metadata.
Declaration
class func writePlaceholder(at placeholderURL: URL, withMetadata metadata: NSFileProviderItem) throwsParameters
- placeholderURL:
The placeholder URL for the document. You can generate a placeholder URL from a document URL by calling Placeholderurl(for:).
- metadata:
The metadata for this document.
Discussion
Call this method whenever you need to create a placeholder for a document. The metadata that you provide sets the data provided to the user in the browser interface.