HKHealthStore.swift 442 B

1234567891011121314151617181920
  1. //
  2. // HKHealthStore.swift
  3. // LoopKit
  4. //
  5. // Copyright © 2018 LoopKit Authors. All rights reserved.
  6. //
  7. import HealthKit
  8. protocol HKSampleQueryTestable {
  9. func executeSampleQuery(
  10. for type: HKSampleType,
  11. matching predicate: NSPredicate,
  12. limit: Int,
  13. sortDescriptors: [NSSortDescriptor]?,
  14. resultsHandler: @escaping (_ query: HKSampleQuery, _ results: [HKSample]?, _ error: Error?) -> Void
  15. )
  16. }