Type Method

hertzUnit(with:)

Returns a HealthKit unit for measuring frequency in hertz with the provided prefix.

Declaration

class func hertzUnit(with prefix: HKMetricPrefix) -> Self

Parameters

prefix

A valid metric prefix value. For the complete list of prefix values, see HKMetricPrefix.

Discussion

Hertz represent cycles per second.

See Also

Constructing Frequency Units

class func hertz() -> Self

Returns a HealthKit unit for measuring frequency in hertz.