One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKStatisticsQuery

class · SDK 27.1

class HKStatisticsQuery

Members (1)

init

init

TypeScript
static init(quantityType: HKQuantityType, quantitySamplePredicate: (_Foundation_NSPredicate) | null, options: HKStatisticsOptions, handler: ((arg0: HKStatisticsQuery, arg1: (HKStatistics) | null, arg2: (NativeError) | null) => void)): HKStatisticsQuery
Swift declaration
init(quantityType: HKQuantityType, quantitySamplePredicate: NSPredicate?, options: HKStatisticsOptions = [], completionHandler handler: @escaping @Sendable (HKStatisticsQuery, HKStatistics?, (any Error)?) -> Void)

Skipped declarations

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

HKStatisticsQuery.init()

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

All HealthKit types →