Edit

Share via


HKWorkoutBuilder.BeginCollectionAsync(NSDate) Method

Definition

Starts the workout at the sepcified time, begins collecting workout data, and returns a task that contains a success status and any error that occurred.

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> BeginCollectionAsync (Foundation.NSDate startDate);
abstract member BeginCollectionAsync : Foundation.NSDate -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.BeginCollectionAsync : Foundation.NSDate -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

startDate
NSDate

The date and time the workout starts.

Returns

A task that contains a success status and any error that occurred.

Applies to