<!--
{
  "availability" : [
    "tvOS: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryUI",
  "identifier" : "/documentation/DeviceDiscoveryUI/DevicePickerSupportedAction/callAsFunction(_:parameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DeviceDiscoveryUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:024_DeviceDiscoveryUI_SwiftC00A21PickerSupportedActionV14callAsFunction_10parametersSb7Network9NWBrowserC10DescriptorO_AF12NWParametersCycSgtF"
  },
  "title" : "callAsFunction(_:parameters:)"
}
-->

# callAsFunction(_:parameters:)

Returns a Boolean value that indicates whether the current device supports device discovery.

```
func callAsFunction(_ browseDescriptor: NWBrowser.Descriptor, parameters: (() -> NWParameters)? = nil) -> Bool
```

## Parameters

`browseDescriptor`

A descriptor for your application service. To create an application service descriptor, call <doc://com.apple.documentation/documentation/Network/NWBrowser/Descriptor-swift.enum/applicationService(name:)> and provide a name for the service.

`parameters`

Parameters for your network connection. Use <doc://com.apple.documentation/documentation/Network/NWParameters/applicationService> to create a default set of parameters that create an encrypted connection with the other devices. You can also add `a` <doc://com.apple.documentation/documentation/Network/NWProtocolFramer> to provide an application-level messaging protocol.

---

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)