One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKGAD7Assessment

class · iOS 18.0+ · SDK 27.1

class HKGAD7Assessment

Members (3)

get · iOS 18.0+

risk

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

init

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

Creates a new assessment

get · iOS 18.0+

answers

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

Skipped declarations

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

HKGAD7Assessment.init()

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

All HealthKit types →