Contents

accommodatePresentedItemEviction(completionHandler:)

Given that something in the system is waiting to evict the presented file or directory, do whatever it takes to ensure that the eviction will succeed and that the receiver’s application will behave properly when the eviction has happened, and then invoke the completion handler. This must include calling +[NSFileCoordinator removeFilePresenter:]. You may instead prevent eviction by passing the completion handler a meaningful error.

Declaration

optional func accommodatePresentedItemEviction(completionHandler: @escaping  @Sendable ((any Error)?) -> Void)
optional func accommodatePresentedItemEviction() async throws

Discussion

If this method is not implemented, eviction will fail.