<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderExternalVolumeHandling/shouldConnectExternalDomain(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:objc(pl)NSFileProviderExternalVolumeHandling(im)shouldConnectExternalDomainWithCompletionHandler:"
  },
  "title" : "shouldConnectExternalDomain(completionHandler:)"
}
-->

# shouldConnectExternalDomain(completionHandler:)

Determines whether to connect to a domain from another device.

```
func shouldConnectExternalDomain(completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)