---
title: postNotificationWhenConsumed
framework: coremedia
role: symbol
role_heading: Type Property
path: coremedia/cmsamplebufferattachmentkeydefinitions/postnotificationwhenconsumed
---

# postNotificationWhenConsumed

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

## Declaration

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

## Discussion

Discussion This attachment is used at run time to request that a decode pipeline post kCMSampleBufferConsumerNotification_BufferConsumed notification when this sample buffer is consumed. The value for this key is used as the userInfo dictionary in the notification.
