Type Method

percentUnit

Returns a HealthKit unit for measuring percentages.

Declaration

+ (instancetype)percentUnit;

Return Value

A HealthKit unit for measuring percentages.

Discussion

Percent measures a value between 0.0 and 1.0. HealthKit uses percent units when measuring body fat percentage, oxygen saturation, blood alcohol content, and similar values. Even though count and percent units are both scalar units, you cannot convert between them.

See Also

Constructing Scalar Units

+ countUnit

Returns a HealthKit unit for measuring counts.