<!--
{
  "documentType" : "article",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/avsamplebufferdisplaylayer-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review unsupported symbols and their replacements.

## Topics

### Initiating media data requests

[`func requestMediaDataWhenReady(on: dispatch_queue_t, using: () -> Void)`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/requestMediaDataWhenReady(on:using:))

Instructs the target to invoke a client-supplied block repeatedly, at its convenience, in order to gather sample buffers for display.

[`var isReadyForMoreMediaData: Bool`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/isReadyForMoreMediaData)

A Boolean value that indicates the readiness of the layer to accept more sample buffers.

[`var requiresFlushToResumeDecoding: Bool`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/requiresFlushToResumeDecoding)

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

[`func stopRequestingMediaData()`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/stopRequestingMediaData())

Cancels any current media data request.

[`var hasSufficientMediaDataForReliablePlaybackStart: Bool`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/hasSufficientMediaDataForReliablePlaybackStart)

A Boolean value that indicates whether the enqueued media data meets the renderer’s preroll level.

### Flushing sample buffers

[`func flush()`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/flush())

Instructs the layer to discard any enqueued sample buffers that are pending.

[`func flushAndRemoveImage()`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/flushAndRemoveImage())

Instructs the layer to discard pending enqueued sample buffers and remove any currently displayed image.

### Configuring the timebase

[`var timebase: CMTimebase`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/timebase)

The renderer’s timebase, which determines how the layer interprets time stamps.

### Enqueuing the sample buffer

[`func enqueue(CMSampleBuffer)`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/enqueue(_:))

Sends a sample buffer for display.

### Getting display layer settings

[`var status: AVQueuedSampleBufferRenderingStatus`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/status)

The ability of the display layer to be used for enqueuing sample buffers.

[`enum AVQueuedSampleBufferRenderingStatus`](/documentation/AVFoundation/AVQueuedSampleBufferRenderingStatus)

The statuses for sample buffer rendering.

### Handling errors

[`var error: (any Error)?`](/documentation/AVFoundation/AVSampleBufferDisplayLayer/error)

The error that caused the failure.



---

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)