Instance Property

sampleType

The sample type.

Declaration

@NSCopying var sampleType: HKSampleType { get }

Discussion

This property contains a concrete sample type that corresponds with this sample’s concrete class. For example, if the sample is an HKQuantitySample instance, it returns an HKQuantityType object.

See Also

Accessing the Sample’s Data

var startDate: Date

The sample’s start date.

var endDate: Date

The sample’s end date.