---
title: "callAsFunction(_:parameters:)"
framework: devicediscoveryui
role: symbol
role_heading: Instance Method
path: "devicediscoveryui/devicepickersupportedaction/callasfunction(_:parameters:)"
---

# callAsFunction(_:parameters:)

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

## Declaration

```swift
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.
