One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKQuantityType

class · iOS 8.0+ · SDK 27.1

class HKQuantityType

Members (3)

method · iOS 8.0+

is

TypeScript
is(unit: HKUnit): boolean
Swift declaration
func `is`(compatibleWith unit: HKUnit) -> Bool
get · iOS 8.0+

aggregationStyle

TypeScript
get aggregationStyle(): HKQuantityAggregationStyle
Swift declaration
var aggregationStyle: HKQuantityAggregationStyle { get }
init · iOS 15.0+

init

TypeScript
static init(identifier: HKQuantityTypeIdentifier): HKQuantityType
Swift declaration
convenience init(_ identifier: HKQuantityTypeIdentifier)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKQuantityType.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All HealthKit types →