---
title: "shouldConnectExternalDomain(completionHandler:)"
framework: fileprovider
role: symbol
role_heading: Instance Method
path: "fileprovider/nsfileproviderexternalvolumehandling/shouldconnectexternaldomain(completionhandler:)"
---

# shouldConnectExternalDomain(completionHandler:)

Determines whether to connect to a domain from another device.

## Declaration

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

```swift
func shouldConnectExternalDomain() async throws
```
