HKDevice
A device that generates data for HealthKit.
Declaration
class HKDeviceMentioned in
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.
Topics
Creating Device Objects
init(name:manufacturer:model:hardwareVersion:firmwareVersion:softwareVersion:localIdentifier:udiDeviceIdentifier:)local()
Accessing Data About a Device
udiDeviceIdentifierfirmwareVersionhardwareVersionlocalIdentifiermanufacturermodelnamesoftwareVersion