Configures a network listener to publish a service over Wi-Fi Aware and accept incoming connections from paired devices.
Devices can publish services for other Wi-Fi Aware devices to use by creating a `NetworkListener` object from the
[Network](https://developer.apple.com/documentation/Network) framework, and passing in a `.wifiAware()` instruction indicating the
`WAPublishableService` to provide, and the set of `WAPairedDevice` that can connect to the service.
The code below configures the `NetworkListener` as a Wi-Fi Aware publisher by passing in a `.wifiAware()` instruction:
```swift
NetworkListener(for: .wifiAware( .connecting(to:service, from:.selected(devices)) ) )
```
Configures the provided parameters for a Wi-Fi Aware publish operation and connection.
- Parameter parameters: The `NWParameters` to configure.
get · iOS 26.0+
isApplicationService
TypeScript
get isApplicationService(): boolean
Swift declaration
var isApplicationService: Bool { get }
A Boolean value that determines whether the devices are listening for an application service.
The value is `true` if a device is listening for an application service. The value is `false` otherwise.
get · iOS 26.0+
service
TypeScript
get service(): _Network_NWListener_Service
Swift declaration
var service: NWListener.Service { get }
The service data for the Wi-Fi Aware publish operation.