Contents

wattUnit(with:)

Returns a HealthKit unit for measuring power, using watt units with the provided prefix.

Declaration

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

Parameters

  • prefix:

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

See Also

Constructing power units