SwiftfuncHealthKitHealthKit.HKHealthStoreQueryDescriptorEvaluator

findOne

HealthKit.HKHealthStoreQueryDescriptorEvaluator.findOne<A, B where A: HealthKit.QueryByIdQueryDescriptorProtocol, B == A.ModelKind>(queryDescriptor: A, eventHandler: @Sendable (Result<B, Error>) -> ()) -> HealthKit.QueryToken

Structure

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

generic{}

AB

req{}

param{}

  1. 0queryDescriptor:
    genericParameterA
  2. 1eventHandler:
    function@Sendable (Result<B, Error>) -> ()sendableescaping

result{}