WAPublisherListener.Devices
The structure that determines the devices to connect to.
Declaration
struct DevicesOverview
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)) ) )