---
title: HKMetadataKeyDeviceName
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeydevicename
---

# HKMetadataKeyDeviceName

The name of the device that took this reading.

## Declaration

```swift
let HKMetadataKeyDeviceName: String
```

## Discussion

Discussion This key takes a string value. note: In iOS 9.0 and later, the use of this key is discouraged. Use the HKDevice class instead.

## See Also

### Device Information Keys

- [HKMetadataKeyDeviceSerialNumber](healthkit/hkmetadatakeydeviceserialnumber.md)
- [HKMetadataKeyUDIDeviceIdentifier](healthkit/hkmetadatakeyudideviceidentifier.md)
- [HKMetadataKeyUDIProductionIdentifier](healthkit/hkmetadatakeyudiproductionidentifier.md)
- [HKMetadataKeyDigitalSignature](healthkit/hkmetadatakeydigitalsignature.md)
- [HKMetadataKeyDeviceManufacturerName](healthkit/hkmetadatakeydevicemanufacturername.md)
- [HKMetadataKeyDevicePlacementSide](healthkit/hkmetadatakeydeviceplacementside.md)
- [HKDevicePlacementSide](healthkit/hkdeviceplacementside.md)
- [HKMetadataKeyAppleDeviceCalibrated](healthkit/hkmetadatakeyappledevicecalibrated.md)
