HKHealthStore.GetPreferredUnits Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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