attachments
TypeScriptget attachments(): CMSampleBuffer_SampleAttachmentsSwift declarationvar attachments: CMSampleBuffer.SampleAttachmentsAttachments of the sample.
struct · iOS 26.0+ · SDK 27.1
struct SamplePropertiesInformation about a sample in the sample buffer. Each sample buffer holds a ``SamplePropertiesCollection`` which provides this sample information for each sample in the sample buffer.
get attachments(): CMSampleBuffer_SampleAttachmentsSwift declarationvar attachments: CMSampleBuffer.SampleAttachmentsAttachments of the sample.
set attachments(value: CMSampleBuffer_SampleAttachments)Swift declarationvar attachments: CMSampleBuffer.SampleAttachmentsAttachments of the sample.
static init(size: (number) | null, timing: CMSampleTimingInfo, attachments?: CMSampleBuffer_SampleAttachments): CMSampleBuffer_SamplePropertiesSwift declarationinit(size: Int? = nil, timing: CMSampleTimingInfo, attachments: CMSampleBuffer.SampleAttachments = .init())get size(): (number) | nullSwift declarationvar size: Int?Size in bytes of the sample. The size of the sample is only applicable for buffers carrying data blocks. For pixel buffers and tagged buffers, the size should be set to `nil`.
set size(value: (number) | null)Swift declarationvar size: Int?Size in bytes of the sample. The size of the sample is only applicable for buffers carrying data blocks. For pixel buffers and tagged buffers, the size should be set to `nil`.
get timing(): CMSampleTimingInfoSwift declarationvar timing: CMSampleTimingInfoTiming information of the sample. Set to ``CMSampleTimingInfo/invalid`` if unknown. Individual fields may be set to ``CMTime/invalid`` if unknown.
set timing(value: CMSampleTimingInfo)Swift declarationvar timing: CMSampleTimingInfoTiming information of the sample. Set to ``CMSampleTimingInfo/invalid`` if unknown. Individual fields may be set to ``CMTime/invalid`` if unknown.
No declarations were skipped in this snapshot.