One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKStateOfMind.ValenceClassification

enum · iOS 18.0+ · SDK 27.1

enum ValenceClassification

Members (2)

init · iOS 18.0+

init

TypeScript
initRawValue(rawValue: number): (HKStateOfMind_ValenceClassification) | null
Swift declaration
init?(rawValue: Int)
init · iOS 18.0+

init

TypeScript
initValence(valence: number): (HKStateOfMind_ValenceClassification) | null
Swift declaration
init?(valence: Double)

Returns the valence classification appropriate for a valence value. If the given valence is outside the supported range of values, this function returns `nil`.

Skipped declarations

No declarations were skipped in this snapshot.

All HealthKit types →