Contents

deletionRejected

An error indicating a failed deletion action.

Declaration

static var deletionRejected: NSFileProviderError.Code { get }

Discussion

If the user tries to delete an item, but your extension needs to reject the deletion (for example, due to a conflicting remote change), return an NSFileProviderError.Code.deletionRejected error. The system recreates the deleted item based on the latest metadata available from your extension.

Call the fileProviderErrorForRejectedDeletion(of:) method to create the error object.

See Also

Accessing error codes