One Logo Pool Ball
WiFiAware · IOS API REFERENCE

WASubscriberBrowser

struct · iOS 26.0+ · SDK 27.1

struct WASubscriberBrowser

The structure that configures a network browser to subscribe to a Wi-Fi Aware service and make outgoing connections to paired devices. Devices can subscribe to services provided by other Wi-Fi Aware devices by creating a `NetworkBrowser` object from the [Network](https://developer.apple.com/documentation/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: ```swift NetworkBrowser(for: .wifiAware( .connecting(to:.selected(devices), from:service) ) ) ```

Members (3)

method · iOS 26.0+

makeEndpoint

TypeScript
makeEndpoint(browseResult: _Network_NWBrowser_Result): (WAEndpoint) | null
Swift declaration
func makeEndpoint(from browseResult: NWBrowser.Result) throws -> WASubscriberBrowser.Endpoint?

Creates a connectable Wi-Fi Aware endpoint from a browse result. - Parameter browseResult: The result of the `NWBrowser` operation. - Returns: A `WAEndpoint` that you can connect to, or `nil` if it can't be created. - Throws: An error if the result isn't valid.

method · iOS 26.0+

makeDescriptor

TypeScript
makeDescriptor(): _Network_NWBrowser_Descriptor
Swift declaration
func makeDescriptor() -> NWBrowser.Descriptor

Makes a descriptor that can create a network browser for a Wi-Fi Aware subscribe operation. - Returns: A new `Descriptor` that configures the `NetworkBrowser` for Wi-Fi Aware.

method · iOS 26.0+

configureParameters

TypeScript
configureParameters(parameters?: (_Network_NWParameters) | null): _Network_NWParameters
Swift declaration
func configureParameters(_ parameters: NWParameters?) -> NWParameters

Returns the parameters to use to configure the Wi-Fi Aware subscriber and the subsequent connection. - Parameter parameters: The parameters to use to configure the subscriber. - Returns: A new `NWParameters`, updated to include the Wi-Fi Aware parameters.

Skipped declarations

No declarations were skipped in this snapshot.

All WiFiAware types →