One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKQueryDescriptor

class · iOS 15.0+ · SDK 27.1

class HKQueryDescriptor

Members (3)

init · iOS 15.0+

init

TypeScript
static init(sampleType: HKSampleType, predicate?: (_Foundation_NSPredicate) | null): HKQueryDescriptor
Swift declaration
init(sampleType: HKSampleType, predicate: NSPredicate?)
get · iOS 15.0+

predicate

TypeScript
get predicate(): (_Foundation_NSPredicate) | null
Swift declaration
@NSCopying var predicate: NSPredicate? { get }
get · iOS 15.0+

sampleType

TypeScript
get sampleType(): HKSampleType
Swift declaration
@NSCopying var sampleType: HKSampleType { get }

Skipped declarations

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

HKQueryDescriptor.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All HealthKit types →