HKWorkoutBuilder.AddAsync Method

Definition

Overloads

AddAsync(NSDictionary)

Adds the specified metadata and returns a task that contains a success status and any error that occurred.

AddAsync(HKMetadata)

Adds the specified metadata and returns a task that contains a success status and any error that occurred.

AddAsync(HKSample[])

Adds the specified samples and returns a task that contains a success status and any error that occurred.

AddAsync(HKWorkoutEvent[])

Adds the specified workout events and returns a task that contains a success status and any error that occurred.

AddAsync(NSDictionary)

Adds the specified metadata and returns a task that contains a success status and any error that occurred.

protected virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> AddAsync (Foundation.NSDictionary metadata);
abstract member AddAsync : Foundation.NSDictionary -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.AddAsync : Foundation.NSDictionary -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

metadata
NSDictionary

The metadata to add.

Returns

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

Applies to

AddAsync(HKMetadata)

Adds the specified metadata and returns a task that contains a success status and any error that occurred.

public System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> AddAsync (HealthKit.HKMetadata metadata);
member this.AddAsync : HealthKit.HKMetadata -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

metadata
HKMetadata

The metadata to add.

Returns

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

Applies to

AddAsync(HKSample[])

Adds the specified samples and returns a task that contains a success status and any error that occurred.

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> AddAsync (HealthKit.HKSample[] samples);
abstract member AddAsync : HealthKit.HKSample[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.AddAsync : HealthKit.HKSample[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

samples
HKSample[]

The samples to add.

Returns

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

Applies to

AddAsync(HKWorkoutEvent[])

Adds the specified workout events and returns a task that contains a success status and any error that occurred.

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> AddAsync (HealthKit.HKWorkoutEvent[] workoutEvents);
abstract member AddAsync : HealthKit.HKWorkoutEvent[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.AddAsync : HealthKit.HKWorkoutEvent[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

workoutEvents
HKWorkoutEvent[]

The workout events to add.

Returns

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

Applies to