Returns a HealthKit unit for measuring energy, using joule units with the provided prefix.
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
A valid metric prefix value. For the complete list of prefix values, see
A HealthKit unit for measuring energy based on joules and the provided prefix.
This method is used to create prefixed versions of joules. HealthKit commonly uses kilojoules to measure food energy in many regions. Kilojoules can be created as shown below.