init
TypeScriptstatic init(body: ((arg0: CMBufferQueue_Handlers_Builder) => void)): CMBufferQueue_HandlersSwift declarationinit(withHandlers body: (inout CMBufferQueue.Handlers.Builder) -> Void)Creates a `Handlers` using a `Builder`
struct · iOS 13.0+ · SDK 27.1
struct HandlersHandlers provided to `CMBufferQueue` initializers, for use by the queue in interrogating the buffers that it will see.
static init(body: ((arg0: CMBufferQueue_Handlers_Builder) => void)): CMBufferQueue_HandlersSwift declarationinit(withHandlers body: (inout CMBufferQueue.Handlers.Builder) -> Void)Creates a `Handlers` using a `Builder`
withHandlers(body: ((arg0: CMBufferQueue_Handlers_Builder) => void)): CMBufferQueue_HandlersSwift declarationfunc withHandlers(_ body: (inout CMBufferQueue.Handlers.Builder) -> Void) -> CMBufferQueue.HandlersCreates a `Handlers` using a `Builder`, using `self` as default values
get getDuration(): ((arg0: unknown) => Promise<CMTime>)Swift declarationlet getDuration: CMBufferGetTimeHandlerThis handler is called (once) during enqueue and dequeue operations to update the total duration of the queue.
get isDataReady(): (((arg0: unknown) => Promise<boolean>)) | nullSwift declarationlet isDataReady: CMBufferGetBooleanHandler?This handler is called from `dequeueIfDataReady()`, to ask if the buffer that is about to be dequeued is ready. Can be `nil` (data will be assumed to be ready).
get getDecodeTimeStamp(): (((arg0: unknown) => Promise<CMTime>)) | nullSwift declarationlet getDecodeTimeStamp: CMBufferGetTimeHandler?This handler is called from `firstDecodeTimeStamp` (once), and from `minDecodeTimeStamp` (multiple times). It should return the decode timestamp of the buffer. If there are multiple samples in the buffer, this handler should return the minimum decode timestamp in the buffer. Can be `nil` (`firstDecodeTimeStamp` and `minDecodeTimeStamp` will return `CMTime.invalid`).
static get unsortedSampleBuffers(): CMBufferQueue_HandlersSwift declarationstatic let unsortedSampleBuffers: CMBufferQueue.HandlersCallbacks for unsorted `CMSampleBuffer`s, provided as a convenience.
get getPresentationTimeStamp(): (((arg0: unknown) => Promise<CMTime>)) | nullSwift declarationlet getPresentationTimeStamp: CMBufferGetTimeHandler?This handler is called from `firstPresentationTimeStamp` (once) and from `minPresentationTimeStamp` (multiple times). It should return the presentation timestamp of the buffer. If there are multiple samples in the buffer, this handler should return the minimum presentation timestamp in the buffer. Can be `nil` (`firstPresentationTimeStamp` and `minPresentationTimeStamp` will return `CMTime.invalid`).
get dataBecameReadyNotification(): (string) | nullSwift declarationlet dataBecameReadyNotification: String?If triggers of type `.whenDataBecomesReady` are installed, the queue will listen for this notification on the head buffer. Can be `nil` (then the queue won't listen for it).
static get outputPTSSortedSampleBuffers(): CMBufferQueue_HandlersSwift declarationstatic let outputPTSSortedSampleBuffers: CMBufferQueue.HandlersCallbacks for `CMSampleBuffer`s sorted by output presentation timestamp, provided as a convenience.
get compare(): (((arg0: unknown, arg1: unknown) => Promise<_CoreFoundation_CFComparisonResult>)) | nullSwift declarationlet compare: CMBufferCompareHandler?This handler is called (multiple times) from `enqueue()`, to perform an insertion sort. Can be `nil` (queue will be FIFO).
get getSize(): (((arg0: unknown) => Promise<number>)) | nullSwift declarationlet getSize: CMBufferGetSizeHandler?This handler is called (once) during enqueue and dequeue operation to update the total size of the queue. Can be `nil`.
No declarations were skipped in this snapshot.