Compartilhar via


HKHealthStore.AddSamples Método

Definição

Vincula amostras a um treino.

[Foundation.Export("addSamples:toWorkout:completion:")]
public virtual void AddSamples (HealthKit.HKSample[] samples, HealthKit.HKWorkout workout, HealthKit.HKStoreSampleAddedCallback callback);
abstract member AddSamples : HealthKit.HKSample[] * HealthKit.HKWorkout * HealthKit.HKStoreSampleAddedCallback -> unit
override this.AddSamples : HealthKit.HKSample[] * HealthKit.HKWorkout * HealthKit.HKStoreSampleAddedCallback -> unit

Parâmetros

samples
HKSample[]
workout
HKWorkout
callback
HKStoreSampleAddedCallback

A ser adicionado.

Esse parâmetro pode ser null.

Atributos

Aplica-se a