HKHealthStore.GetPreferredUnits Método

Definición

Llama de forma asincrónica a completion, pasando un NSDictionary de 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

Parámetros

quantityTypes
NSSet
completion
Action<NSDictionary,NSError>

Controlador que se va a ejecutar cuando se completa la operación.

Atributos

Se aplica a