---
title: screenTimeRestriction
framework: pushtotalk
role: symbol
role_heading: Type Property
path: pushtotalk/ptchannelerror-swift.struct/screentimerestriction
---

# screenTimeRestriction

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

## Declaration

```swift
static var screenTimeRestriction: PTChannelError.Code { get }
```

## See Also

### Constants

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