One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKPHQ9Assessment

class · iOS 18.0+ · SDK 27.1

class HKPHQ9Assessment

Members (3)

get · iOS 18.0+

risk

TypeScript
get risk(): HKPHQ9Assessment_Risk
Swift declaration
var risk: HKPHQ9Assessment.Risk { get }
init · iOS 18.0+

init

TypeScript
static init(date: globalThis.Date, answers: Array<HKPHQ9Assessment_Answer>, metadata?: (Record<string, unknown>) | null): HKPHQ9Assessment
Swift declaration
convenience init(date: Date, answers: [HKPHQ9Assessment.Answer], metadata: [String : Any]? = [:])

Creates a new assessment

get · iOS 18.0+

answers

TypeScript
get answers(): Array<HKPHQ9Assessment_Answer>
Swift declaration
var answers: [HKPHQ9Assessment.Answer] { get }

Skipped declarations

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

HKPHQ9Assessment.init()

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

All HealthKit types →