<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMSampleBufferAttachmentKeyDefinitions/postNotificationWhenConsumed",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "s:9CoreMedia38CMSampleBufferAttachmentKeyDefinitionsO28postNotificationWhenConsumed0A5Video012CVAttachmentF10DefinitionVyAE0M29ModePreferenceShouldPropagateOAA08CMCustomI4InfoVGvpZ"
  },
  "title" : "postNotificationWhenConsumed"
}
-->

# postNotificationWhenConsumed

Indicates that decode pipelines should post a notification when consuming the sample buffer.

```
static let postNotificationWhenConsumed: CVAttachmentKeyDefinition<CMSampleBufferAttachmentKeyDefinitions.ShouldPropagate, CMCustomNotificationInfo>
```

## Discussion

This attachment is used at run time to request that a decode pipeline post [`kCMSampleBufferConsumerNotification_BufferConsumed`](/documentation/CoreMedia/kCMSampleBufferConsumerNotification_BufferConsumed)
notification when this sample buffer is consumed. The value for this key is used as the userInfo dictionary in
the notification.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)