---
title: WINetworkSharingController
framework: wifiinfrastructure
role: symbol
role_heading: Class
path: wifiinfrastructure/winetworksharingcontroller
---

# WINetworkSharingController

A controller that enables your container app to control network-sharing functions with connected accessories.

## Declaration

```swift
class WINetworkSharingController
```

## Overview

Overview Use the WINetworkSharingController class to request authorization for Wi-Fi network sharing and to prompt people to share networks with their accessories. This class manages the interaction between your container app and the system’s network-sharing infrastructure. important: Only your container app can call the methods in this object. Your app needs the com.apple.developer.wifi-infrastructure entitlement with the WiFiNetworkSharing capability declared.

## Topics

### Getting the controlled accessory

- [accessory](wifiinfrastructure/winetworksharingcontroller/accessory.md)

### Authorizing an accessory for network sharing

- [requestAuthorization()](wifiinfrastructure/winetworksharingcontroller/requestauthorization().md)
- [WINetworkSharingController.AuthorizationState](wifiinfrastructure/winetworksharingcontroller/authorizationstate.md)

### Signaling your App Extension to ask for a network

- [askToShare()](wifiinfrastructure/winetworksharingcontroller/asktoshare().md)

### Initializers

- [init(for:)](wifiinfrastructure/winetworksharingcontroller/init(for:).md)

## See Also

### Network sharing

- [WINetworkSharingProvider](wifiinfrastructure/winetworksharingprovider.md)
- [WINetworkSharingAskToShareState](wifiinfrastructure/winetworksharingasktosharestate.md)
