HealthKit · IOS API REFERENCE
HKStatisticsCollectionQuery
class · SDK 27.1
class HKStatisticsCollectionQuery
Members (8)
initinit
TypeScriptstatic init(quantityType: HKQuantityType, quantitySamplePredicate: (_Foundation_NSPredicate) | null, options: HKStatisticsOptions, anchorDate: globalThis.Date, intervalComponents: _Foundation_DateComponents): HKStatisticsCollectionQuery
Swift declarationinit(quantityType: HKQuantityType, quantitySamplePredicate: NSPredicate?, options: HKStatisticsOptions = [], anchorDate: Date, intervalComponents: DateComponents)
getanchorDate
TypeScriptget anchorDate(): globalThis.Date
Swift declarationvar anchorDate: Date { get }
getinitialResultsHandler
TypeScriptget initialResultsHandler(): (((arg0: HKStatisticsCollectionQuery, arg1: (HKStatisticsCollection) | null, arg2: (NativeError) | null) => Promise<void>)) | null
Swift declarationvar initialResultsHandler: (@Sendable (HKStatisticsCollectionQuery, HKStatisticsCollection?, (any Error)?) -> Void)? { get set }
setinitialResultsHandler
TypeScriptset initialResultsHandler(value: (((arg0: HKStatisticsCollectionQuery, arg1: (HKStatisticsCollection) | null, arg2: (NativeError) | null) => void)) | null)
Swift declarationvar initialResultsHandler: (@Sendable (HKStatisticsCollectionQuery, HKStatisticsCollection?, (any Error)?) -> Void)? { get set }
getintervalComponents
TypeScriptget intervalComponents(): _Foundation_DateComponents
Swift declarationvar intervalComponents: DateComponents { get }
getoptions
TypeScriptget options(): HKStatisticsOptions
Swift declarationvar options: HKStatisticsOptions { get }
getstatisticsUpdateHandler
TypeScriptget statisticsUpdateHandler(): (((arg0: HKStatisticsCollectionQuery, arg1: (HKStatistics) | null, arg2: (HKStatisticsCollection) | null, arg3: (NativeError) | null) => Promise<void>)) | null
Swift declarationvar statisticsUpdateHandler: (@Sendable (HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, (any Error)?) -> Void)? { get set }
setstatisticsUpdateHandler
TypeScriptset statisticsUpdateHandler(value: (((arg0: HKStatisticsCollectionQuery, arg1: (HKStatistics) | null, arg2: (HKStatisticsCollection) | null, arg3: (NativeError) | null) => void)) | null)
Swift declarationvar statisticsUpdateHandler: (@Sendable (HKStatisticsCollectionQuery, HKStatistics?, HKStatisticsCollection?, (any Error)?) -> Void)? { get set }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
HKStatisticsCollectionQuery.init()
inherited init: cannot prove legal (class declares 1 custom initializer)
All HealthKit types →