<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 14.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVSampleBufferDisplayLayer/requiresFlushToResumeDecoding",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSampleBufferDisplayLayer(py)requiresFlushToResumeDecoding"
  },
  "title" : "requiresFlushToResumeDecoding"
}
-->

# requiresFlushToResumeDecoding

A Boolean value that indicates whether the layer needs to flush its state to continue decoding frames.

```
var requiresFlushToResumeDecoding: Bool { get }
```

## Discussion

Apple discourages the use of this symbol in iOS 17, tvOS 17, and macOS 14 and later. Use [`requiresFlushToResumeDecoding`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/requiresFlushToResumeDecoding) on the [`sampleBufferRenderer`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/sampleBufferRenderer) instead.

When an app enters a state where use of video decoder resources isn’t permissible, the value of this property changes to <doc://com.apple.documentation/documentation/Swift/true> and the display layer’s status changes to a [`AVQueuedSampleBufferRenderingStatus.failed`](/documentation/AVFoundation/AVQueuedSampleBufferRenderingStatus/failed) state.

To resume rendering sample buffers using the display layer after this property’s value is <doc://com.apple.documentation/documentation/Swift/true>, apps must first reset the display layer’s status to [`AVQueuedSampleBufferRenderingStatus.unknown`](/documentation/AVFoundation/AVQueuedSampleBufferRenderingStatus/unknown), which you do by calling the layer’s [`flush()`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/flush()) method.

This property isn’t key-value observable. Instead, observe changes to this property value by observing notifications of type [`AVSampleBufferDisplayLayerRequiresFlushToResumeDecodingDidChangeNotification`](/documentation/AVFoundation/AVSampleBufferDisplayLayerRequiresFlushToResumeDecodingDidChangeNotification).

---

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)