---
title: PTChannelError.Code.screenTimeRestriction
framework: pushtotalk
role: symbol
role_heading: Case
path: pushtotalk/ptchannelerror-swift.struct/code/screentimerestriction
---

# PTChannelError.Code.screenTimeRestriction

A channel error that indicates a Screen Time restriction prevents the action.

## Declaration

```swift
case screenTimeRestriction
```

## See Also

### Error codes

- [PTChannelError.Code.unknown](pushtotalk/ptchannelerror-swift.struct/code/unknown.md)
- [PTChannelError.Code.appNotForeground](pushtotalk/ptchannelerror-swift.struct/code/appnotforeground.md)
- [PTChannelError.Code.channelNotFound](pushtotalk/ptchannelerror-swift.struct/code/channelnotfound.md)
- [PTChannelError.Code.channelLimitReached](pushtotalk/ptchannelerror-swift.struct/code/channellimitreached.md)
- [PTChannelError.Code.callActive](pushtotalk/ptchannelerror-swift.struct/code/callactive.md)
- [PTChannelError.Code.transmissionInProgress](pushtotalk/ptchannelerror-swift.struct/code/transmissioninprogress.md)
- [PTChannelError.Code.transmissionNotFound](pushtotalk/ptchannelerror-swift.struct/code/transmissionnotfound.md)
- [PTChannelError.Code.deviceManagementRestriction](pushtotalk/ptchannelerror-swift.struct/code/devicemanagementrestriction.md)
- [PTChannelError.Code.transmissionNotAllowed](pushtotalk/ptchannelerror-swift.struct/code/transmissionnotallowed.md)
