performanceMode
TypeScriptget performanceMode(): WAPerformanceModeSwift declarationvar performanceMode: WAPerformanceModeThe initial performance configuration of the data path when connected.
struct · iOS 26.0+ · SDK 27.1
struct WAParametersParameters configuring a Wi-Fi Aware data path connection. You can customize Wi-Fi Aware configuration with the parameters passed in the `.wifiAware()` instruction to the `NetworkBrowser` and `NetworkListener`, or via the `.wifiAware:WAParameters?` property on `NWParameters`. For more information about creating a `NetworkListener`, refer to ``WAPublisherListener/DatapathParameters`` > Important: Each service must have the same ``WAPerformanceMode`` on both the `NetworkBrowser` (subscriber) and `NetworkListener` (publisher) sides of the connection, or the resulting performance behavior is undefined. If not specified, the performance mode defaults to ``WAPerformanceMode/bulk`` on both sides.
get performanceMode(): WAPerformanceModeSwift declarationvar performanceMode: WAPerformanceModeThe initial performance configuration of the data path when connected.
set performanceMode(value: WAPerformanceMode)Swift declarationvar performanceMode: WAPerformanceModeThe initial performance configuration of the data path when connected.
static init(performanceMode?: WAPerformanceMode): WAParametersSwift declarationinit(performanceMode: WAPerformanceMode = .bulk)Initializes the parameters with defaults.
static get defaults(): WAParametersSwift declarationstatic let defaults: WAParametersThe property that configures default parameters that prioritize bulk throughput, power consumption, and other concurrent Wi-Fi use cases. - Returns: Default parameters.
static get realtime(): WAParametersSwift declarationstatic let realtime: WAParametersThe property that configures parameters that prioritize latency at the expense of throughput, power consumption, and other concurrent Wi-Fi use cases. - Returns: Realtime parameters.
No declarations were skipped in this snapshot.