HKDevice instance represents a device that generates data for HealthKit. These 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.
- iOS 9.0+
- watchOS 2.0+
Like many classes in HealthKit, the
HKDevice class should not be subclassed.