---
title: kCMSampleAttachmentKey_DoNotDisplay
framework: coremedia
role: symbol
role_heading: Global Variable
path: coremedia/kcmsampleattachmentkey_donotdisplay
---

# kCMSampleAttachmentKey_DoNotDisplay

Indicates whether the sample should be decoded but not displayed (type CFBoolean, default false).

## Declaration

```swift
let kCMSampleAttachmentKey_DoNotDisplay: CFString
```

## Discussion

Discussion Use this attachment at run time to request this behavior from a display pipeline such as the AVSampleBufferDisplayLayer class. This attachment is not written to media files.

## See Also

### Sample Keys

- [kCMSampleAttachmentKey_NotSync](coremedia/kcmsampleattachmentkey_notsync.md)
- [kCMSampleAttachmentKey_PartialSync](coremedia/kcmsampleattachmentkey_partialsync.md)
- [kCMSampleAttachmentKey_DependsOnOthers](coremedia/kcmsampleattachmentkey_dependsonothers.md)
- [kCMSampleAttachmentKey_IsDependedOnByOthers](coremedia/kcmsampleattachmentkey_isdependedonbyothers.md)
- [kCMSampleAttachmentKey_DisplayImmediately](coremedia/kcmsampleattachmentkey_displayimmediately.md)
- [kCMSampleAttachmentKey_EarlierDisplayTimesAllowed](coremedia/kcmsampleattachmentkey_earlierdisplaytimesallowed.md)
- [kCMSampleAttachmentKey_HasRedundantCoding](coremedia/kcmsampleattachmentkey_hasredundantcoding.md)
- [kCMSampleAttachmentKey_PostDecodeProcessingMetadata](coremedia/kcmsampleattachmentkey_postdecodeprocessingmetadata.md)
