One Logo Pool Ball
WiFiAware · IOS API REFERENCE

WASubscriberBrowser.Devices

struct · iOS 26.0+ · SDK 27.1

struct Devices

The structure that determines the devices to connect to. This structure determines the devices the `NetworkBrowser` acts on when subscribing, such as which devices to try to connect to. It allows your app to include only the devices that are relevant for a given `NetworkBrowser` operation and use case. `Devices` is the `to:` component of the `.wifiAware()` instruction to a `NetworkBrowser`. The code below is an example of configuring a `NetworkBrowser` with specific devices to connect to: ```swift NetworkBrowser(for: .wifiAware( .connecting(to:.selected(devices), from:service) ) ) ``` > Important: Only include the devices your app intends to use with the use case. Including unnecessary devices may impose additional power and performance costs on both the local and remote devices, and may reduce privacy.

Members (4)

get · iOS 26.0+

userSpecifiedDevices

TypeScript
static get userSpecifiedDevices(): WASubscriberBrowser_Devices
Swift declaration
static let userSpecifiedDevices: WASubscriberBrowser.Devices

Includes only devices the user selects or pairs in DeviceDiscoveryUI's `DevicePicker()`. Only applicable to use with the `DevicePicker()` API. Will throw an error if used with a `NetworkBrowser`.

get · iOS 26.0+

allPairedDevices

TypeScript
static get allPairedDevices(): WASubscriberBrowser_Devices
Swift declaration
static let allPairedDevices: WASubscriberBrowser.Devices

The property that includes all paired devices that your app has access to.

static · iOS 26.0+

matching

TypeScript
static matching(pairedDevicesFilter: _Foundation_Predicate<WAPairedDevice>): WASubscriberBrowser_Devices
Swift declaration
static func matching(_ pairedDevicesFilter: Predicate<WAPairedDevice>) -> WASubscriberBrowser.Devices

Includes only paired devices matching the provided live filter predicate. - Parameter pairedDevicesFilter: The filter to apply to choose paired devices for this operation. - Returns: A new `Devices` containing the device filter to use.

static · iOS 26.0+

selected

TypeScript
static selected(pairedDevices: Record<number, WAPairedDevice>): WASubscriberBrowser_Devices
Swift declaration
static func selected(_ pairedDevices: WAPairedDevice.Devices) -> WASubscriberBrowser.Devices

Includes only the preselected paired devices in the provided dictionary. - Parameter pairedDevices: A ``Devices`` dictionary holding a snapshot of paired devices to use for this operation. - Returns: A new ``WASubscriber/Devices`` including the selected devices.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

WASubscriberBrowser.Devices.selected(_:)

This parameter hides a concrete Swift type.

All WiFiAware types →