One Logo Pool Ball
WiFiAware · IOS API REFERENCE

WASubscriberBrowser.Action

struct · iOS 26.0+ · SDK 27.1

struct Action

The structure that configures the Wi-Fi Aware subscriber operation the network browser performs. The configuration includes the service and devices it operates on. The ``WASubscriberBrowser/Action`` is the first component of the `.wifiAware()` instruction to a `NetworkBrowser`. The code below is an example of creating a `NetworkBrowser`: ```swift NetworkBrowser(for: .wifiAware( .connecting(to:.selected(devices), from:service) ) ) ```

Members (1)

static · iOS 26.0+

connecting

TypeScript
static connecting(pairedDevices: WASubscriberBrowser_Devices, mySubscribingService: WASubscribableService): WASubscriberBrowser_Action
Swift declaration
static func connecting(to pairedDevices: WASubscriberBrowser.Devices, from mySubscribingService: WASubscribableService) -> WASubscriberBrowser.Action

Subscribes to the provided service over Wi-Fi, providing browse results for connecting to the specified paired devices if available. When subscribing, the `NetworkBrowser` provides a ``WAEndpoint`` for each discovered paired device, and the app can then create a `NetworkConnection` object to connect to each. Data path parameters including the ``WAPerformanceMode`` are set when creating the connection, using ``WAParameters`` written into the <doc://com.apple.documentation/documentation/Network/NWParameters> for the `NetworkConnection`. - Parameters: - pairedDevices: The devices to connect to. The browser isn't activated if no devices are specified. - mySubscribingService: The service to discover. - Returns: A new `Action` configuring this operation.

Skipped declarations

No declarations were skipped in this snapshot.

All WiFiAware types →