編輯

共用方式為


HKWorkoutBuilder.EndCollection Method

Definition

Ends the workout and runs a handler when the operation completes.

[Foundation.Export("endCollectionWithEndDate:completion:")]
public virtual void EndCollection (Foundation.NSDate endDate, HealthKit.HKWorkoutBuilderCompletionHandler completionHandler);
abstract member EndCollection : Foundation.NSDate * HealthKit.HKWorkoutBuilderCompletionHandler -> unit
override this.EndCollection : Foundation.NSDate * HealthKit.HKWorkoutBuilderCompletionHandler -> unit

Parameters

endDate
NSDate

The end time of the workout.

completionHandler
HKWorkoutBuilderCompletionHandler

A handler to run when the operation completes.

Attributes

Applies to