callAsFunction(_:parameters:)
Returns a Boolean value that indicates whether the current device supports device discovery.
Declaration
func callAsFunction(_ browseDescriptor: NWBrowser.Descriptor, parameters: (() -> NWParameters)? = nil) -> BoolParameters
- browseDescriptor:
A descriptor for your application service. To create an application service descriptor, call Applicationservice(name:) and provide a name for the service.
- parameters:
Parameters for your network connection. Use Applicationservice to create a default set of parameters that create an encrypted connection with the other devices. You can also add
aNwprotocolframer to provide an application-level messaging protocol.