Instance Property

operatingSystemVersion

A string that identifies the operating system used to save a sample.

Declaration

var operatingSystemVersion: OperatingSystemVersion { get }

Discussion

For samples saved on watchOS 4.0, HealthKit sets the operating system property to {4, 0, 0}.

Topics

Constants

let HKSourceRevisionAnyOperatingSystem: OperatingSystemVersion

A constant that matches any operating system.

See Also

Accessing Source and Version Information

var source: HKSource

The source for a sample.

var version: String?

A string that identifies a particular version of the source.

var productType: String?

A string that identifies the device used to save a sample.