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
属性

适用于