---
title: authorizationStatus
framework: sensorkit
role: symbol
role_heading: Instance Property
path: sensorkit/srsensorreader/authorizationstatus
---

# authorizationStatus

The status of the user’s agreement to let the app access this reader’s sensor.

## Declaration

```swift
var authorizationStatus: SRAuthorizationStatus { get }
```

## Discussion

Discussion When an app wishes to read data from a particular sensor, it checks for user approval first by accessing the value of this property. If the value is SRAuthorizationStatus.authorized, an app may begin recording (see startRecording()) and execute data fetches (see fetch(_:)). If the value is SRAuthorizationStatus.denied, an app can’t begin recording or execute fetches until the user switches on authorization for the reader’s sensor in Settings. If the value is SRAuthorizationStatus.notDetermined, the user has not answered the in-app prompt. To display the prompt, call requestAuthorization(sensors:completion:).

## See Also

### Checking user authorization

- [requestAuthorization(sensors:completion:)](sensorkit/srsensorreader/requestauthorization(sensors:completion:).md)
- [SRAuthorizationStatus](sensorkit/srauthorizationstatus.md)
