Instance Property

version

A string that identifies a particular version of the source.

Declaration

var version: String? { get }

Discussion

This property contains a string that identifies the version of the app or device used to save the sample. If the sample is saved by an app, the property contains the current version number of the app (for example, 1.4). If it is saved by an iOS device or an Apple Watch, the property contains the current version number of the device’s OS (for example, 9.0 or 2.0 respectively). If it is saved directly by a Bluetooth device, this property contains the version string provided by that device.

Topics

Constants

let HKSourceRevisionAnyVersion: String

A constant that matches any version.

See Also

Accessing Source and Version Information

var source: HKSource

The source for a sample.

var operatingSystemVersion: OperatingSystemVersion

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

var productType: String?

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