Edit

Share via


HKWorkoutBuilder.BeginCollection Method

Definition

Starts the workout at the sepcified time. Begins collecting workout data.

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

Parameters

startDate
NSDate

The date and time the workout starts.

completionHandler
HKWorkoutBuilderCompletionHandler

A handler to run when the operation completes.

Attributes

Applies to