---
title: WINetworkSharingController.AuthorizationState
framework: wifiinfrastructure
role: symbol
role_heading: Enumeration
path: wifiinfrastructure/winetworksharingcontroller/authorizationstate
---

# WINetworkSharingController.AuthorizationState

An enumeration that represents the authorization state for sharing Wi-Fi networks with a given accessory.

## Declaration

```swift
enum AuthorizationState
```

## Overview

Overview Use AuthorizationState to determine the current permission level for Wi-Fi network sharing between the person’s device and a connected accessory. This enum helps you understand whether the person has granted, denied, or not yet decided on Wi-Fi sharing permissions. Check the authorization state before attempting to share Wi-Fi credentials with an accessory. Handle each state appropriately in your app’s user interface to provide clear feedback about the current sharing permissions.

## Topics

### Checking authorization state

- [WINetworkSharingController.AuthorizationState.undetermined](wifiinfrastructure/winetworksharingcontroller/authorizationstate/undetermined.md)
- [WINetworkSharingController.AuthorizationState.denied](wifiinfrastructure/winetworksharingcontroller/authorizationstate/denied.md)
- [WINetworkSharingController.AuthorizationState.askToShare](wifiinfrastructure/winetworksharingcontroller/authorizationstate/asktoshare.md)
- [WINetworkSharingController.AuthorizationState.automatic](wifiinfrastructure/winetworksharingcontroller/authorizationstate/automatic.md)

## Relationships

### Conforms To

- [CaseIterable](swift/caseiterable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Authorizing an accessory for network sharing

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