One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

TemporalSegmentIdentifier

struct · iOS 16.0+ · SDK 27.1

struct TemporalSegmentIdentifier

Uniquely identifiers a segment of a temporal sequence.

Members (9)

get · iOS 16.0+

rangeInSeconds

TypeScript
get rangeInSeconds(): SDKHandle
Swift declaration
var rangeInSeconds: Range<TimeInterval> { get }

The time range in seconds.

get · iOS 16.0+

durationInSeconds

TypeScript
get durationInSeconds(): number
Swift declaration
var durationInSeconds: TimeInterval { get }

The segment duration in seconds.

get · iOS 16.0+

range

TypeScript
get range(): SDKHandle
Swift declaration
var range: Range<Int>

The segment's timestamp range. To get a timestamp in seconds divide the value by the timescale.

set · iOS 16.0+

range

TypeScript
set range(value: SDKHandle)
Swift declaration
var range: Range<Int>

The segment's timestamp range. To get a timestamp in seconds divide the value by the timescale.

init · iOS 16.0+

init

TypeScript
static init(source: string, range: SDKHandle, timescale: number): TemporalSegmentIdentifier
Swift declaration
init(source: String, range: Range<Int>, timescale: Int)

Creates a temporal-segment identifier. - Parameters: - source: A unique source description. - range: A timestamp range. - timescale: The number of uniquely identifiable timestamps in a second.

get · iOS 16.0+

source

TypeScript
get source(): string
Swift declaration
var source: String

The segment source. For files use the full path or URL of the file.

set · iOS 16.0+

source

TypeScript
set source(value: string)
Swift declaration
var source: String

The segment source. For files use the full path or URL of the file.

get · iOS 16.0+

timescale

TypeScript
get timescale(): number
Swift declaration
var timescale: Int

The identifier's timescale is the number of uniquely identifiable timestamps in a second. For example an audio file sampled at 44,100 Hz should have a timescale value of 44,100 (or an integer multiple of that) so that every sample has a unique timestamp.

set · iOS 16.0+

timescale

TypeScript
set timescale(value: number)
Swift declaration
var timescale: Int

The identifier's timescale is the number of uniquely identifiable timestamps in a second. For example an audio file sampled at 44,100 Hz should have a timescale value of 44,100 (or an integer multiple of that) so that every sample has a unique timestamp.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →