Contents

result(for:)

Runs a one-shot query and asynchronously returns a snapshot of the current matching results.

Declaration

func result(for healthStore: HKHealthStore) async throws -> [HKActivitySummary]

Parameters

  • healthStore:

    The access point for HealthKit data.

See Also

Running queries