reconnect(completionHandler:)
Reconnects the domain with the extension.
Declaration
func reconnect(completionHandler: @escaping @Sendable ((any Error)?) -> Void)func reconnect() async throwsParameters
- completionHandler:
A block that the system calls after reconnecting the domain. The block takes the following parameter:
errorIf an error occurs, this object contains information about the error; otherwise, it’s
nil.
Discussion
Call this method to reconnect the domain after a call to the disconnect(reason:options:completionHandler:) method.
See Also
Working with domains
init(for:)import(_:fromDirectoryAt:completionHandler:)add(_:completionHandler:)getDomainsWithCompletionHandler(_:)remove(_:completionHandler:)remove(_:mode:completionHandler:)removeAllDomains(completionHandler:)NSFileProviderManager.DomainRemovalModedisconnect(reason:options:completionHandler:)NSFileProviderManager.DisconnectionOptionswaitForStabilization(completionHandler:)temporaryDirectoryURL()