Contents

WAPublisherListener.Action

The structure that configures the Wi-Fi Aware publisher operation that the network listener performs.

Declaration

struct Action

Overview

The configuration includes the service and devices it operates on.

The WAPublisherListener.Action is the first component of the .wifiAware() instruction to a NetworkListener.

The code below is an example of creating a NetworkListener:

NetworkListener(for: .wifiAware( .connecting(to:service,  from:.selected(devices)) ) )

Topics

Creating a listener

Type Methods

See Also

Publisher