共用方式為


HKHealthStore.SplitTotalEnergy 方法

定義

分割 totalEnergy 成靜止和作用中能源部分,並使用結果呼叫處理常式。

[Foundation.Export("splitTotalEnergy:startDate:endDate:resultsHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.None, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, null)]
public virtual void SplitTotalEnergy (HealthKit.HKQuantity totalEnergy, Foundation.NSDate startDate, Foundation.NSDate endDate, Action<HealthKit.HKQuantity,HealthKit.HKQuantity,Foundation.NSError> resultsHandler);
abstract member SplitTotalEnergy : HealthKit.HKQuantity * Foundation.NSDate * Foundation.NSDate * Action<HealthKit.HKQuantity, HealthKit.HKQuantity, Foundation.NSError> -> unit
override this.SplitTotalEnergy : HealthKit.HKQuantity * Foundation.NSDate * Foundation.NSDate * Action<HealthKit.HKQuantity, HealthKit.HKQuantity, Foundation.NSError> -> unit

參數

totalEnergy
HKQuantity
startDate
NSDate
endDate
NSDate
屬性

適用於