---
title: WAPublisherListener.Action
framework: wifiaware
role: symbol
role_heading: Structure
path: wifiaware/wapublisherlistener/action
---

# WAPublisherListener.Action

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

## Declaration

```swift
struct Action
```

## Overview

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

- [connecting(to:from:datapath:)](wifiaware/wapublisherlistener/action/connecting(to:from:datapath:).md)

### Type Methods

- [addingConnections(from:)](wifiaware/wapublisherlistener/action/addingconnections(from:).md)

## Relationships

### Conforms To

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

## See Also

### Publisher

- [WAPublisherListener](wifiaware/wapublisherlistener.md)
- [WAPublisherListener.Devices](wifiaware/wapublisherlistener/devices.md)
- [WAPublisherListener.DatapathParameters](wifiaware/wapublisherlistener/datapathparameters.md)
