A type that identifies samples that store numerical values.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Health
Kit
Declaration
class HKQuantityType : HKSample Type
Overview
The HKQuantity
class is a concrete subclass of the HKObject
class. To create a quantity type instance, use the object type’s quantity
convenience method.
Use quantity types to:
Request permission to read or write matching quantity samples.
Create and share matching quantity samples.
Query for matching quantity samples.