SwiftstructHealthKit

struct HealthKit.HKAnchoredObjectQueryDescriptor

Structure

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

Members 9

  1. fieldvar anchor: HKQueryAnchor?+0x8
  2. fieldvar limit: Int?+0x10
  3. fieldvar predicates: [HealthKit.HKSamplePredicate<A>]+0x0
  4. fieldvar queryAttributes: HealthKit.HKQueryAttributes+0x20
  5. funcresult(for: HKHealthStore) async throws -> HealthKit.HKAnchoredObjectQueryDescriptor<A>.Result
  6. funcresults(for: HKHealthStore) -> HealthKit.HKAnchoredObjectQueryDescriptor<A>.Results
  7. initinit(predicates: [HealthKit.HKSamplePredicate<A>], anchor: HKQueryAnchor?, limit: Int?) -> HealthKit.HKAnchoredObjectQueryDescriptor<A>
  8. typealiastypealias Output = HealthKit.HKAnchoredObjectQueryDescriptor<A>.Result
  9. typealiastypealias Sequence = HealthKit.HKAnchoredObjectQueryDescriptor<A>.Results
struct HKAnchoredObjectQueryDescriptor<A> where A: __C.HKSample {
    struct Result {
        let addedSamples: [A]
        let deletedObjects: [__C.HKDeletedObject]
        let newAnchor: __C.HKQueryAnchor
    }
    struct Results {
        struct Iterator {
            var iterator: Swift.AsyncThrowingStream<HealthKit.HKAnchoredObjectQueryDescriptor<A>.Result, any Swift.Error>.Iterator

            func next() async throws -> HealthKit.HKAnchoredObjectQueryDescriptor<A>.Result?
        }
        let stream: HealthKit.HKQueryAsyncStream<HealthKit.HKAnchoredObjectQueryDescriptor<A>.Result>

        func makeAsyncIterator() -> HealthKit.HKAnchoredObjectQueryDescriptor<A>.Results.Iterator
    }
    var predicates: [HealthKit.HKSamplePredicate<A>]
    var anchor: __C.HKQueryAnchor?
    var limit: Swift.Int?
    var queryAttributes: HealthKit.HKQueryAttributes

    init(predicates: [HealthKit.HKSamplePredicate<A>], anchor: __C.HKQueryAnchor?, limit: Swift.Int?)

    func result(for: __C.HKHealthStore) async throws -> HealthKit.HKAnchoredObjectQueryDescriptor<A>.Result
    func results(for: __C.HKHealthStore) -> HealthKit.HKAnchoredObjectQueryDescriptor<A>.Results
}