Contents

wifiAware

Get and set Wi-Fi Aware specific connection parameters.

Declaration

final var wifiAware: WAParameters { get set }

Discussion

If no Wi-Fi Aware specific properties were previously set, the WAParameters/defaults are assumed.

The following code is an example of creating the NWParameters, setting, and getting the WiFi Aware parameters.

// Create NWParameters
var networkParameters = NWParameters()

// Set Wi-Fi Aware Parameters
networkParameters.wifiAware = .defaults

// Get Wi-Fi Aware Parameters
let wifiAwareParameters = networkParameters.wifiAware