One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKSample

class · iOS 8.0+ · SDK 27.1

class HKSample

Members (4)

get · iOS 8.0+

endDate

TypeScript
get endDate(): globalThis.Date
Swift declaration
var endDate: Date { get }
get · iOS 14.3+

hasUndeterminedDuration

TypeScript
get hasUndeterminedDuration(): boolean
Swift declaration
var hasUndeterminedDuration: Bool { get }
get · iOS 8.0+

sampleType

TypeScript
get sampleType(): HKSampleType
Swift declaration
@NSCopying var sampleType: HKSampleType { get }
get · iOS 8.0+

startDate

TypeScript
get startDate(): globalThis.Date
Swift declaration
var startDate: Date { get }

Skipped declarations

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

HKSample.init()

inherited init: clang: 'init' is unavailable

All HealthKit types →