One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKActivitySummaryQueryDescriptor

struct · iOS 15.4+ · SDK 27.1

struct HKActivitySummaryQueryDescriptor

Members (5)

method · iOS 15.4+

result

TypeScript
result(healthStore: HKHealthStore): Promise<Array<HKActivitySummary>>
Swift declaration
func result(for healthStore: HKHealthStore) async throws -> [HKActivitySummary]

Returns the activity summaries matching the receiver in ascending date order. If the `predicate` property of the receiver is nil, all activity summaries are returned.

method · iOS 15.4+

results

TypeScript
results(healthStore: HKHealthStore): HKActivitySummaryQueryDescriptor_Results
Swift declaration
func results(for healthStore: HKHealthStore) -> HKActivitySummaryQueryDescriptor.Results

Returns an `AsyncSequence` representing a stream of activity summaries matching the receiver. The first element of the stream will be a complete collection of activity summaries which match. Subsequent elements will contain only the activity summaries that have changed since the previous element was received.

init · iOS 15.4+

init

TypeScript
static init(predicate?: (_Foundation_NSPredicate) | null): HKActivitySummaryQueryDescriptor
Swift declaration
init(predicate: NSPredicate?)
get · iOS 15.4+

predicate

TypeScript
get predicate(): (_Foundation_NSPredicate) | null
Swift declaration
var predicate: NSPredicate?

The predicate that the returned summaries should match.

set · iOS 15.4+

predicate

TypeScript
set predicate(value: (_Foundation_NSPredicate) | null)
Swift declaration
var predicate: NSPredicate?

The predicate that the returned summaries should match.

Skipped declarations

No declarations were skipped in this snapshot.

All HealthKit types →