startIndex
TypeScriptget startIndex(): numberSwift declarationvar startIndex: Int { get }The position of the first element.
struct · iOS 26.0+ · SDK 27.1
struct SamplePropertiesCollectionFixed size collection of sample information. This collection contains one element for each sample in the sample buffer. The size of collection is fixed to the number of samples in a sample buffer. Convenience static methods are available on timings & sizes to create this collection by specifying just one value.
get startIndex(): numberSwift declarationvar startIndex: Int { get }The position of the first element.
get attachments(): (Array<CMSampleBuffer_SampleAttachments>) | nullSwift declarationvar attachments: [CMSampleBuffer.SampleAttachments]? { get set }Access sample attachments. When setting attachments array, the number of entries must match ``count``.
set attachments(value: (Array<CMSampleBuffer_SampleAttachments>) | null)Swift declarationvar attachments: [CMSampleBuffer.SampleAttachments]? { get set }Access sample attachments. When setting attachments array, the number of entries must match ``count``.
static initSampleCountSizesTimingsAttachments(sampleCount: number, sizes?: (CMSampleBuffer_SizePerSample) | null, timings?: (CMSampleBuffer_TimingPerSample) | null, attachments?: (Array<CMSampleBuffer_SampleAttachments>) | null): CMSampleBuffer_SamplePropertiesCollectionSwift declarationinit(sampleCount: Int, sizes: CMSampleBuffer.SizePerSample?, timings: CMSampleBuffer.TimingPerSample?, attachments: [CMSampleBuffer.SampleAttachments]? = nil)Create a collection with specified sample information. - Parameter sampleCount: Number of samples. Must be greater than 0. - Parameter sizes: Size information of each sample. - Parameter timings: Timing information of each sample. - Parameter attachments: Attachments for each sample.
get count(): numberSwift declarationvar count: Int { get }The number of elements in the collection.
get sizes(): (CMSampleBuffer_SizePerSample) | nullSwift declarationvar sizes: CMSampleBuffer.SizePerSample? { get set }Access sample sizes. When setting distinct sizes, the number of entries must match ``count``.
set sizes(value: (CMSampleBuffer_SizePerSample) | null)Swift declarationvar sizes: CMSampleBuffer.SizePerSample? { get set }Access sample sizes. When setting distinct sizes, the number of entries must match ``count``.
get timings(): (CMSampleBuffer_TimingPerSample) | nullSwift declarationvar timings: CMSampleBuffer.TimingPerSample? { get set }Access sample timings. When setting distinct timings, the number of entries must match ``count``.
set timings(value: (CMSampleBuffer_TimingPerSample) | null)Swift declarationvar timings: CMSampleBuffer.TimingPerSample? { get set }Access sample timings. When setting distinct timings, the number of entries must match ``count``.
get endIndex(): numberSwift declarationvar endIndex: Int { get }The position one greater than the last valid subscript argument.
static init(): CMSampleBuffer_SamplePropertiesCollectionSwift declarationinit()Creates an empty collection.
subscript(position: number): CMSampleBuffer_SamplePropertiesSwift declarationsubscript(position: Int) -> CMSampleBuffer.SampleProperties { get set }Accesses the element at the specified position.
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CMSampleBuffer.SamplePropertiesCollection.init(arrayLiteral:)
A variable number of Swift arguments is not supported.
CMSampleBuffer.SamplePropertiesCollection.init(_:)
This parameter hides a concrete Swift type.