共用方式為


HKHealthStore.GetPreferredUnits 方法

定義

以非同步方式呼叫 completion ,傳入 NSDictionary 的 。 >HKUnitHKQuantityType

[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>

作業完成時要執行的處理常式。

屬性

適用於