HKHealthStore.GetPreferredUnits Метод

Определение

Асинхронно вызывает completion, передавая NSDictionary в из 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

Параметры

quantityTypes
NSSet
completion
Action<NSDictionary,NSError>

Обработчик, запускающийся после завершения операции.

Атрибуты

Применяется к