Contents

WAPublisherListener.DatapathParameters

The parameter that sets the initial Wi-Fi Aware data path configuration for any devices that are connected.

Declaration

struct DatapathParameters

Overview

The DatapathParameters is an optional “datapath:” component of the .wifiAware() instruction to a NetworkListener. If you don’t set a specific parameter, then the system applies the default parameters with bulk performance mode.

The code below is an example of how to set a data path configuration:

NetworkListener(for: .wifiAware( .connecting(to:service,  from:.selected(devices)) datapath: .defaults) )

Topics

Setting performance modes

See Also

Publisher