---
title: SCStreamError.Code.userDeclined
framework: screencapturekit
role: symbol
role_heading: Case
path: screencapturekit/scstreamerror/code/userdeclined
---

# SCStreamError.Code.userDeclined

An error message that indicates the user didn’t grant Screen Recording permission to your app.

## Declaration

```swift
case userDeclined
```

## See Also

### Privacy and entitlements

- [SCStreamError.Code.missingEntitlements](screencapturekit/scstreamerror/code/missingentitlements.md)
