One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKObserverQuery

class · iOS 8.0+ · SDK 27.1

class HKObserverQuery

Members (2)

init · iOS 15.0+

init

TypeScript
static initQueryDescriptorsUpdateHandler(queryDescriptors: Array<HKQueryDescriptor>, updateHandler: ((arg0: HKObserverQuery, arg1: (Array<HKSampleType>) | null, arg2: (() => Promise<void>), arg3: (NativeError) | null) => void)): HKObserverQuery
Swift declaration
init(queryDescriptors: [HKQueryDescriptor], updateHandler: @escaping @Sendable (HKObserverQuery, Set<HKSampleType>?, @escaping HKObserverQueryCompletionHandler, (any Error)?) -> Void)
init · iOS 8.0+

init

TypeScript
static initSampleTypePredicateUpdateHandler(sampleType: HKSampleType, predicate: (_Foundation_NSPredicate) | null, updateHandler: ((arg0: HKObserverQuery, arg1: (() => Promise<void>), arg2: (NativeError) | null) => void)): HKObserverQuery
Swift declaration
init(sampleType: HKSampleType, predicate: NSPredicate?, updateHandler: @escaping @Sendable (HKObserverQuery, @escaping HKObserverQueryCompletionHandler, (any Error)?) -> Void)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKObserverQuery.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All HealthKit types →