HKQuantity.GetDoubleValue(HKUnit) Method

Definition

Returns the value of the quantity when it is expressed in the units specified by unit.

[Foundation.Export("doubleValueForUnit:")]
public virtual double GetDoubleValue (HealthKit.HKUnit unit);
abstract member GetDoubleValue : HealthKit.HKUnit -> double
override this.GetDoubleValue : HealthKit.HKUnit -> double

Parameters

unit
HKUnit

Returns

Attributes

Applies to