Condividi tramite


HKHealthStore.GetPreferredUnits Metodo

Definizione

Chiama completionin modo asincrono , passando un NSDictionary oggetto -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

Parametri

quantityTypes
NSSet
completion
Action<NSDictionary,NSError>

Gestore da eseguire al termine dell'operazione.

Attributi

Si applica a