---
title: displayWasDisabled
framework: AVFoundation
role: symbol
role_heading: Type Property
path: avfoundation/averror-swift.struct/displaywasdisabled
---

# displayWasDisabled

Screen capture failed because the display was inactive.

## Declaration

```swift
static var displayWasDisabled: AVError.Code { get }
```

## See Also

### Error codes

- [AVError.Code](avfoundation/averror-swift.struct/code.md)
- [airPlayControllerRequiresInternet](avfoundation/averror-swift.struct/airplaycontrollerrequiresinternet.md)
- [airPlayReceiverRequiresInternet](avfoundation/averror-swift.struct/airplayreceiverrequiresinternet.md)
- [airPlayReceiverTemporarilyUnavailable](avfoundation/averror-swift.struct/airplayreceivertemporarilyunavailable.md)
- [applicationIsNotAuthorizedToUseDevice](avfoundation/averror-swift.struct/applicationisnotauthorizedtousedevice.md)
- [applicationIsNotAuthorized](avfoundation/averror-swift.struct/applicationisnotauthorized.md)
- [autoWhiteBalanceNotLocked](avfoundation/averror-swift.struct/autowhitebalancenotlocked.md)
- [compositionTrackSegmentsNotContiguous](avfoundation/averror-swift.struct/compositiontracksegmentsnotcontiguous.md)
- [contentIsNotAuthorized](avfoundation/averror-swift.struct/contentisnotauthorized.md)
- [contentIsProtected](avfoundation/averror-swift.struct/contentisprotected.md)
- [contentIsUnavailable](avfoundation/averror-swift.struct/contentisunavailable.md)
- [contentKeyRequestCancelled](avfoundation/averror-swift.struct/contentkeyrequestcancelled.md)
- [contentNotUpdated](avfoundation/averror-swift.struct/contentnotupdated.md)
- [createContentKeyRequestFailed](avfoundation/averror-swift.struct/createcontentkeyrequestfailed.md)
- [decodeFailed](avfoundation/averror-swift.struct/decodefailed.md)
