---
title: authorizationStatus()
framework: corebluetooth
role: symbol
role_heading: Type Method
path: corebluetooth/cbperipheralmanager/authorizationstatus()
---

# authorizationStatus()

Returns the app’s authorization status for sharing data while in the background.

## Declaration

```swift
class func authorizationStatus() -> CBPeripheralManagerAuthorizationStatus
```

## Return Value

Return Value A value that indicates whether the app has authorization to share data using Bluetooth services while in the background. For a list of possible values, see CBPeripheralManagerAuthorizationStatus.

## Discussion

Discussion The system manages the authorization status of a given app, and considers several factors. The user must explicitly authorize apps to share data using Bluetooth services while in the background state. The system automatically displays a request for user authorization when your app first attempts to use Bluetooth services to share data. Calling this method doesn’t prompt the user for access. Instead, you use this method to detect restricted access and hide any affected UI features from the user.

## See Also

### Monitoring the State of a Peripheral Manager

- [CBPeripheralManagerAuthorizationStatus](corebluetooth/cbperipheralmanagerauthorizationstatus.md)
- [CBPeripheralManagerState](corebluetooth/cbperipheralmanagerstate.md)
