TechnologiesNetworking & Connectivity

WiFiInfrastructure

iOSmacOStvOSwatchOSvisionOS

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.

  • Cl
    WINetworkSharingController
    A controller that enables your container app to control network-sharing functions with connected accessories.
  • Cl
    WINetworkSharingProvider
    A 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.

  • St
    WIChannel
    A WiFi Channel.
  • St
    WIMACAddress
    A Wi-Fi MAC Address.
  • St
    WISSID
    The 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.

  • En
    WINetworkSharingAskToShareState
    The authorization state for sharing the current Wi-Fi network with an accessory.
  • En
    WINetworkSharingError
    Error codes for Wi-Fi network-sharing functionality.
← Networking & Connectivity