HKStatistics.GetMostRecentQuantity(HKSource) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從來源傳回最新的數量。
[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
要查詢的來源。
傳回
來源的最新數量。
- 屬性