One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKObject

class · iOS 8.0+ · SDK 27.1

class HKObject

Members (5)

get · iOS 8.0+

uuid

TypeScript
get uuid(): string
Swift declaration
var uuid: UUID { get }
get · iOS 9.0+

device

TypeScript
get device(): (HKDevice) | null
Swift declaration
var device: HKDevice? { get }
get · iOS 8.0+

metadata

TypeScript
get metadata(): (Record<string, unknown>) | null
Swift declaration
var metadata: [String : Any]? { get }
get · iOS 8.0+ · Deprecated in iOS 9.0

source

TypeScript
get source(): HKSource
Swift declaration
var source: HKSource { get }
get · iOS 9.0+

sourceRevision

TypeScript
get sourceRevision(): HKSourceRevision
Swift declaration
var sourceRevision: HKSourceRevision { get }

Skipped declarations

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

HKObject.init()

inherited init: clang: 'init' is unavailable

All HealthKit types →