Edytuj

Udostępnij za pośrednictwem


HKWorkoutBuilder.Add Method

Definition

Overloads

Add(NSDictionary, HKWorkoutBuilderCompletionHandler)

Adds the specified metadata to the workout and runs a handler when the operation completes.

Add(HKMetadata, HKWorkoutBuilderCompletionHandler)

Adds the specified metadata to the workout and runs a handler when the operation completes.

Add(HKSample[], HKWorkoutBuilderCompletionHandler)

Adds the specified samples to the workout and runs a handler when the operation completes.

Add(HKWorkoutEvent[], HKWorkoutBuilderCompletionHandler)

Adds the specified workout events to the workout and runs a handler when the operation completes.

Add(NSDictionary, HKWorkoutBuilderCompletionHandler)

Adds the specified metadata to the workout and runs a handler when the operation completes.

[Foundation.Export("addMetadata:completion:")]
protected virtual void Add (Foundation.NSDictionary metadata, HealthKit.HKWorkoutBuilderCompletionHandler completionHandler);
abstract member Add : Foundation.NSDictionary * HealthKit.HKWorkoutBuilderCompletionHandler -> unit
override this.Add : Foundation.NSDictionary * HealthKit.HKWorkoutBuilderCompletionHandler -> unit

Parameters

metadata
NSDictionary

The metadata to add.

completionHandler
HKWorkoutBuilderCompletionHandler

A handler to run when the operation completes.

Attributes

Applies to

Add(HKMetadata, HKWorkoutBuilderCompletionHandler)

Adds the specified metadata to the workout and runs a handler when the operation completes.

public void Add (HealthKit.HKMetadata metadata, HealthKit.HKWorkoutBuilderCompletionHandler completionHandler);
member this.Add : HealthKit.HKMetadata * HealthKit.HKWorkoutBuilderCompletionHandler -> unit

Parameters

metadata
HKMetadata

The metadata to add.

completionHandler
HKWorkoutBuilderCompletionHandler

A handler to run when the operation completes.

Applies to

Add(HKSample[], HKWorkoutBuilderCompletionHandler)

Adds the specified samples to the workout and runs a handler when the operation completes.

[Foundation.Export("addSamples:completion:")]
public virtual void Add (HealthKit.HKSample[] samples, HealthKit.HKWorkoutBuilderCompletionHandler completionHandler);
abstract member Add : HealthKit.HKSample[] * HealthKit.HKWorkoutBuilderCompletionHandler -> unit
override this.Add : HealthKit.HKSample[] * HealthKit.HKWorkoutBuilderCompletionHandler -> unit

Parameters

samples
HKSample[]

The samples to add.

completionHandler
HKWorkoutBuilderCompletionHandler

A handler to run when the operation completes.

Attributes

Applies to

Add(HKWorkoutEvent[], HKWorkoutBuilderCompletionHandler)

Adds the specified workout events to the workout and runs a handler when the operation completes.

[Foundation.Export("addWorkoutEvents:completion:")]
public virtual void Add (HealthKit.HKWorkoutEvent[] workoutEvents, HealthKit.HKWorkoutBuilderCompletionHandler completionHandler);
abstract member Add : HealthKit.HKWorkoutEvent[] * HealthKit.HKWorkoutBuilderCompletionHandler -> unit
override this.Add : HealthKit.HKWorkoutEvent[] * HealthKit.HKWorkoutBuilderCompletionHandler -> unit

Parameters

workoutEvents
HKWorkoutEvent[]

The workout events to add.

completionHandler
HKWorkoutBuilderCompletionHandler

A handler to run when the operation completes.

Attributes

Applies to