Instance Property

productType

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

Declaration

var productType: String? { get }

Discussion

For samples saved on Apple Watch Series 2, HealthKit sets the product type property to watch2,4.

Topics

Constants

let HKSourceRevisionAnyProductType: String

A constant that matches any product type.

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 operatingSystemVersion: OperatingSystemVersion

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