---
title: HKPredicateKeyPathDevice
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkpredicatekeypathdevice
---

# HKPredicateKeyPathDevice

The key path for accessing the object’s device inside a predicate format string.

## Declaration

```swift
let HKPredicateKeyPathDevice: String
```

## See Also

### Device and source keys

- [HKPredicateKeyPathSource](healthkit/hkpredicatekeypathsource.md)
- [HKPredicateKeyPathSourceRevision](healthkit/hkpredicatekeypathsourcerevision.md)
