---
title: productType
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hksourcerevision/producttype
---

# productType

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

## Declaration

```swift
var productType: String? { get }
```

## Discussion

Discussion For samples saved on Apple Watch Series 2, HealthKit sets the product type property to watch2,4. note: Samples saved using older versions of HealthKit may have a nil-valued product type, indicating that the product type is unknown.

## Topics

### Constants

- [HKSourceRevisionAnyProductType](healthkit/hksourcerevisionanyproducttype.md)

## See Also

### Accessing Source and Version Information

- [source](healthkit/hksourcerevision/source.md)
- [version](healthkit/hksourcerevision/version.md)
- [operatingSystemVersion](healthkit/hksourcerevision/operatingsystemversion.md)
