Instance Method


Binds a URL request to the network interface associated with the hotspot helper command instance.


func bind(to command: NEHotspotHelperCommand)



The hotspot helper command to bind the request to.


Apps that participate in joining Wi-Fi hotspot networks use the APIs in the NetworkExtension framework to authenticate with hotspots. Ordinarily, URLSession will use the default interface, which may be WWAN. By binding to a hotspot helper command, you force a request to use Wi-Fi to communicate with the hotspot.

See Also

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software