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) ) )
```
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.
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.