Returns a HealthKit unit for measuring electrical conductance, using siemen units with the provided prefix.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Health
Kit
Declaration
class func siemenUnit(with prefix: HKMetric Prefix) -> Self
Parameters
prefix
A valid metric prefix value. For the complete list of prefix values, see
HKMetric
.Prefix
Return Value
A HealthKit unit for measuring electrical conductance based on siemens and the provided prefix.
Discussion
This method is used to create prefixed versions of siemens. HealthKit often records electrodermal activity in microsiemens, as shown below.
let mcS = HKUnit.siemenUnitWithMetricPrefix(.Micro)