Edit

Share via


HKHealthStore.GetPreferredUnits Method

Definition

Asynchronously calls completion, passing in a NSDictionary of HKQuantityType->HKUnit.

[Foundation.Export("preferredUnitsForQuantityTypes:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 2, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void GetPreferredUnits (Foundation.NSSet quantityTypes, Action<Foundation.NSDictionary,Foundation.NSError> completion);
abstract member GetPreferredUnits : Foundation.NSSet * Action<Foundation.NSDictionary, Foundation.NSError> -> unit
override this.GetPreferredUnits : Foundation.NSSet * Action<Foundation.NSDictionary, Foundation.NSError> -> unit

Parameters

quantityTypes
NSSet
completion
Action<NSDictionary,NSError>

A handler to run when the operation completes.

Attributes

Applies to