Share via


HKWorkoutBuilder.AddAsync Method

Definition

Overloads

Name Description
AddAsync(HKWorkoutEvent[])

Adds the specified workout events 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(HKMetadata)

Adds the specified metadata 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.

AddAsync(HKWorkoutEvent[])

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> AddAsync(HealthKit.HKWorkoutEvent[] workoutEvents);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.

Attributes

Applies to

AddAsync(HKSample[])

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> AddAsync(HealthKit.HKSample[] samples);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.

Attributes

Applies to

AddAsync(HKMetadata)

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> AddAsync(HealthKit.HKMetadata metadata);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.

Attributes

Applies to

AddAsync(NSDictionary)

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> AddAsync(Foundation.NSDictionary metadata);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.

Attributes

Applies to