HealthKit · IOS API REFERENCE
HKStatisticsQueryDescriptor
struct · iOS 15.4+ · SDK 27.1
struct HKStatisticsQueryDescriptor
Members (6)
method · iOS 15.4+result
TypeScriptresult(healthStore: HKHealthStore): Promise<(HKStatistics) | null>
Swift declarationfunc result(for healthStore: HKHealthStore) async throws -> HKStatistics?
Returns the statistics computed over the samples matching the receiver, or `nil` if no samples matched.
get · iOS 15.4+options
TypeScriptget options(): HKStatisticsOptions
Swift declarationvar options: HKStatisticsOptions
The options indicating which types of statistics to compute.
set · iOS 15.4+options
TypeScriptset options(value: HKStatisticsOptions)
Swift declarationvar options: HKStatisticsOptions
The options indicating which types of statistics to compute.
init · iOS 15.4+init
TypeScriptstatic init(predicate: HKSamplePredicate<HKQuantitySample>, options: HKStatisticsOptions): HKStatisticsQueryDescriptor
Swift declarationinit(predicate: HKSamplePredicate<HKQuantitySample>, options: HKStatisticsOptions)
get · iOS 15.4+predicate
TypeScriptget predicate(): HKSamplePredicate<HKQuantitySample>
Swift declarationvar predicate: HKSamplePredicate<HKQuantitySample>
The predicate matching the samples to compute statistics over.
set · iOS 15.4+predicate
TypeScriptset predicate(value: HKSamplePredicate<HKQuantitySample>)
Swift declarationvar predicate: HKSamplePredicate<HKQuantitySample>
The predicate matching the samples to compute statistics over.
Skipped declarations
No declarations were skipped in this snapshot.
All HealthKit types →