Contents

WASubscriberBrowser

The structure that configures a network browser to subscribe to a Wi-Fi Aware service and make outgoing connections to paired devices.

Declaration

struct WASubscriberBrowser

Overview

Devices can subscribe to services provided by other Wi-Fi Aware devices by creating a NetworkBrowser object from the Network framework, and passing in a .wifiAware() instruction indicating the WASubscribableService to look for, and the set of WAPairedDevice to find it on.

The code below configures the NetworkBrowser as a Wi-Fi Aware subscriber by passing in a .wifiAware() instruction:

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

Topics

Configuring a browser

Processing Wi-Fi Aware subscribe results

Creating browser implementation details

See Also

Subscriber