A device that generates data for HealthKit.
SDKs
- iOS 9.0+
- watchOS 2.0+
Framework
- Health
Kit
Declaration
class HKDevice : NSObject
Overview
Devices include Apple Watch, iPhone, and any other health or fitness peripherals that produce the sample data stored in HealthKit. Device objects are immutable: You set the device’s properties when you create the HKDevice
object, and they cannot change.