SwiftstructHealthKitAdditions

struct HKHealthStore.StatisticsCollectionPublisher

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 6

  1. funcstatic makeQuery(with: HKHealthStore.StatisticsCollectionPublisher.Configuration, outputHandler: @Sendable (HealthKitAdditions.HKQueryPublisherResult<HKHealthStore.StatisticsCollectionPublisher.Output>) -> ()) -> HKQuery
  2. fieldlet configuration: HKHealthStore.StatisticsCollectionPublisher.Configuration
  3. fieldlet healthStore: HKHealthStore
  4. typealiastypealias Configuration = (extension in HealthKitAdditions):__C.Configuration
  5. typealiastypealias Failure = Swift.Error
  6. typealiastypealias Output = (extension in HealthKitAdditions):__C.Output
struct StatisticsCollectionPublisher {
    struct Output {
        let updatedStatistics: __C.HKStatistics?
        let statisticsCollection: __C.HKStatisticsCollection
    }
    struct Configuration {
        let sampleType: __C.HKSampleType
        let predicate: __C.NSPredicate?
        let options: __C.HKStatisticsOptions
        let anchorDate: Foundation.Date
        let intervalComponents: Foundation.DateComponents
        let dateInterval: Foundation.DateInterval?
        let receivesUpdates: Swift.Bool
        let cacheSettings: __C.HKStatisticsCollectionCacheSettings?
        let debugIdentifier: Swift.String
    }
    let configuration: __C.HKHealthStore.StatisticsCollectionPublisher.Configuration
    let healthStore: __C.HKHealthStore

    static func makeQuery(with: __C.HKHealthStore.StatisticsCollectionPublisher.Configuration, outputHandler: @escaping @Sendable (_: HealthKitAdditions.HKQueryPublisherResult<__C.HKHealthStore.StatisticsCollectionPublisher.Output>) -> ()) -> __C.HKQuery
}