---
title: WAPublisherListener.Devices
framework: wifiaware
role: symbol
role_heading: Structure
path: wifiaware/wapublisherlistener/devices
---

# WAPublisherListener.Devices

The structure that determines the devices to connect to.

## Declaration

```swift
struct Devices
```

## Overview

Overview This structure determines the devices the NetworkListener acts on or allows connections from when publishing and includes only the devices that are relevant for a given NetworkListener operation and use case. It allows your app to include only the devices that are relevant for a given NetworkListener operation and use case. Devices is the “from:” component of the .wifiAware() instruction to a NetworkListener. The code below is an example of configuring a NetworkListener with specific devices to allow connections from: NetworkListener(for: .wifiAware( .connecting(to:service,  from:.selected(devices)) ) ) important: Only include the devices your app intends to use with the use case. Including unnecessary devices may impose additional power and performance costs on both the local and remote devices, and may reduce privacy.

## Topics

### Selecting specific devices

- [selected(_:)](wifiaware/wapublisherlistener/devices/selected(_:)-56vig.md)
- [selected(_:)](wifiaware/wapublisherlistener/devices/selected(_:)-1e2.md)
- [userSpecifiedDevices](wifiaware/wapublisherlistener/devices/userspecifieddevices.md)

### Using a live matching filter

- [matching(_:)](wifiaware/wapublisherlistener/devices/matching(_:).md)

### Allowing your paired devices to connect

- [allPairedDevices](wifiaware/wapublisherlistener/devices/allpaireddevices.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Publisher

- [WAPublisherListener](wifiaware/wapublisherlistener.md)
- [WAPublisherListener.Action](wifiaware/wapublisherlistener/action.md)
- [WAPublisherListener.DatapathParameters](wifiaware/wapublisherlistener/datapathparameters.md)
