WiFiInfrastructure lets a container app on iOS control Wi-Fi network-sharing with connected accessories, exposing the network's channel, MAC address, and sharing authorization. Use WINetworkSharingController and WINetworkSharingProvider to coordinate sharing, and inspect the connection through value types such as WIChannel, WIMACAddress, and WISSID. The framework reports the user's sharing authorization through WINetworkSharingAskToShareState and surfaces failures as WINetworkSharingError.
Network Sharing 2
Coordinate Wi-Fi network-sharing between a container app and its connected accessories.
- ClWINetworkSharingControllerA controller that enables your container app to control network-sharing functions with connected accessories.
- ClWINetworkSharingProviderA provider that delivers updated Wi-Fi network information to your app extension.
Connection Details 3
Value types that describe the shared Wi-Fi network's channel and addressing.
- StWIChannelA WiFi Channel.
- StWIMACAddressA Wi-Fi MAC Address.
- StWISSIDThe Service Set Identifier (SSID) for a Wi-Fi network, from which applications derive the human-readable network name.
Authorization and Errors 2
Report the user's sharing authorization and the failures that can occur while sharing.
- EnWINetworkSharingAskToShareStateThe authorization state for sharing the current Wi-Fi network with an accessory.
- EnWINetworkSharingErrorError codes for Wi-Fi network-sharing functionality.