共用方式為


HKStatistics.GetMostRecentQuantity(HKSource) 方法

定義

從來源傳回最新的數量。

[Foundation.Export("mostRecentQuantityForSource:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual HealthKit.HKQuantity GetMostRecentQuantity (HealthKit.HKSource source);
abstract member GetMostRecentQuantity : HealthKit.HKSource -> HealthKit.HKQuantity
override this.GetMostRecentQuantity : HealthKit.HKSource -> HealthKit.HKQuantity

參數

source
HKSource

要查詢的來源。

傳回

來源的最新數量。

屬性

適用於