One Logo Pool Ball
CoreMedia · IOS API REFERENCE

CMSampleBuffer.SampleProperties

struct · iOS 26.0+ · SDK 27.1

struct SampleProperties

Information 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.

Members (7)

get · iOS 26.0+

attachments

TypeScript
get attachments(): CMSampleBuffer_SampleAttachments
Swift declaration
var attachments: CMSampleBuffer.SampleAttachments

Attachments of the sample.

set · iOS 26.0+

attachments

TypeScript
set attachments(value: CMSampleBuffer_SampleAttachments)
Swift declaration
var attachments: CMSampleBuffer.SampleAttachments

Attachments of the sample.

init · iOS 26.0+

init

TypeScript
static init(size: (number) | null, timing: CMSampleTimingInfo, attachments?: CMSampleBuffer_SampleAttachments): CMSampleBuffer_SampleProperties
Swift declaration
init(size: Int? = nil, timing: CMSampleTimingInfo, attachments: CMSampleBuffer.SampleAttachments = .init())
get · iOS 26.0+

size

TypeScript
get size(): (number) | null
Swift declaration
var 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 · iOS 26.0+

size

TypeScript
set size(value: (number) | null)
Swift declaration
var 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 · iOS 26.0+

timing

TypeScript
get timing(): CMSampleTimingInfo
Swift declaration
var timing: CMSampleTimingInfo

Timing information of the sample. Set to ``CMSampleTimingInfo/invalid`` if unknown. Individual fields may be set to ``CMTime/invalid`` if unknown.

set · iOS 26.0+

timing

TypeScript
set timing(value: CMSampleTimingInfo)
Swift declaration
var timing: CMSampleTimingInfo

Timing information of the sample. Set to ``CMSampleTimingInfo/invalid`` if unknown. Individual fields may be set to ``CMTime/invalid`` if unknown.

Skipped declarations

No declarations were skipped in this snapshot.

All CoreMedia types →