Contents

WAPublisherListener.Devices

The structure that determines the devices to connect to.

Declaration

struct Devices

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)) ) )

Topics

Selecting specific devices

Using a live matching filter

Allowing your paired devices to connect

See Also

Publisher