Compartir a través de


HKWorkout.Create Método

Definición

Sobrecargas

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKQuantity, HKDevice, NSDictionary)

Crea y devuelve un nuevo HKWorkout objeto con los valores proporcionados.

Create(HKWorkoutActivityType, NSDate, NSDate, Double, HKQuantity, HKQuantity, HKDevice, HKMetadata)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

Create(HKWorkoutActivityType, NSDate, NSDate, Double, HKQuantity, HKQuantity, HKDevice, NSDictionary)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKDevice, HKMetadata)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKDevice, NSDictionary)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKQuantity, HKDevice, HKMetadata)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

Create(HKWorkoutActivityType, NSDate, NSDate, Double, HKQuantity, HKQuantity, NSDictionary)

Crea una actividad que dura de startDate a endDate.

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKMetadata)

Crea una actividad que dura de startDate a endDate.

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, NSDictionary)

Crea una actividad que dura de startDate a endDate.

Create(HKWorkoutActivityType, NSDate, NSDate)

Crea una actividad que dura de startDate a endDate.

Create(HKWorkoutActivityType, NSDate, NSDate, Double, HKQuantity, HKQuantity, HKMetadata)

Crea una actividad que dura de startDate a endDate.

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKQuantity, HKDevice, NSDictionary)

Crea y devuelve un nuevo HKWorkout objeto con los valores proporcionados.

[Foundation.Export("workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:totalSwimmingStrokeCount:device:metadata:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKWorkoutEvent[] workoutEvents, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, HealthKit.HKQuantity totalSwimmingStrokeCount, HealthKit.HKDevice device, Foundation.NSDictionary metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * HealthKit.HKWorkoutEvent[] * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKDevice * Foundation.NSDictionary -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
workoutEvents
HKWorkoutEvent[]

Se agregará.

Este parámetro puede ser null.

totalEnergyBurned
HKQuantity

Se agregará.

Este parámetro puede ser null.

totalDistance
HKQuantity

Se agregará.

Este parámetro puede ser null.

totalSwimmingStrokeCount
HKQuantity

Se agregará.

Este parámetro puede ser null.

device
HKDevice

Se agregará.

Este parámetro puede ser null.

metadata
NSDictionary

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, Double, HKQuantity, HKQuantity, HKDevice, HKMetadata)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, double duration, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, HealthKit.HKDevice device, HealthKit.HKMetadata metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * double * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKDevice * HealthKit.HKMetadata -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
duration
Double
totalEnergyBurned
HKQuantity
totalDistance
HKQuantity
device
HKDevice
metadata
HKMetadata

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, Double, HKQuantity, HKQuantity, HKDevice, NSDictionary)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

[Foundation.Export("workoutWithActivityType:startDate:endDate:duration:totalEnergyBurned:totalDistance:device:metadata:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, double duration, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, HealthKit.HKDevice device, Foundation.NSDictionary metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * double * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKDevice * Foundation.NSDictionary -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
duration
Double
totalEnergyBurned
HKQuantity

Se agregará.

Este parámetro puede ser null.

totalDistance
HKQuantity

Se agregará.

Este parámetro puede ser null.

device
HKDevice

Se agregará.

Este parámetro puede ser null.

metadata
NSDictionary

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKDevice, HKMetadata)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKWorkoutEvent[] workoutEvents, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, HealthKit.HKDevice device, HealthKit.HKMetadata metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * HealthKit.HKWorkoutEvent[] * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKDevice * HealthKit.HKMetadata -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
workoutEvents
HKWorkoutEvent[]
totalEnergyBurned
HKQuantity
totalDistance
HKQuantity
device
HKDevice
metadata
HKMetadata

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKDevice, NSDictionary)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

[Foundation.Export("workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:device:metadata:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKWorkoutEvent[] workoutEvents, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, HealthKit.HKDevice device, Foundation.NSDictionary metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * HealthKit.HKWorkoutEvent[] * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKDevice * Foundation.NSDictionary -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
workoutEvents
HKWorkoutEvent[]

Se agregará.

Este parámetro puede ser null.

totalEnergyBurned
HKQuantity

Se agregará.

Este parámetro puede ser null.

totalDistance
HKQuantity

Se agregará.

Este parámetro puede ser null.

device
HKDevice

Se agregará.

Este parámetro puede ser null.

metadata
NSDictionary

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKQuantity, HKDevice, HKMetadata)

Crea y devuelve un nuevo HKWorkout con los valores proporcionados.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKWorkoutEvent[] workoutEvents, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, HealthKit.HKQuantity totalSwimmingStrokeCount, HealthKit.HKDevice device, HealthKit.HKMetadata metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * HealthKit.HKWorkoutEvent[] * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKDevice * HealthKit.HKMetadata -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
workoutEvents
HKWorkoutEvent[]
totalEnergyBurned
HKQuantity
totalDistance
HKQuantity
totalSwimmingStrokeCount
HKQuantity
device
HKDevice
metadata
HKMetadata

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, Double, HKQuantity, HKQuantity, NSDictionary)

Crea una actividad que dura de startDate a endDate.

[Foundation.Export("workoutWithActivityType:startDate:endDate:duration:totalEnergyBurned:totalDistance:metadata:")]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, double duration, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, Foundation.NSDictionary metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * double * HealthKit.HKQuantity * HealthKit.HKQuantity * Foundation.NSDictionary -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
duration
Double
totalEnergyBurned
HKQuantity

Se agregará.

Este parámetro puede ser null.

totalDistance
HKQuantity

Se agregará.

Este parámetro puede ser null.

metadata
NSDictionary

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, HKMetadata)

Crea una actividad que dura de startDate a endDate.

public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKWorkoutEvent[] workoutEvents, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, HealthKit.HKMetadata metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * HealthKit.HKWorkoutEvent[] * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKMetadata -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
workoutEvents
HKWorkoutEvent[]
totalEnergyBurned
HKQuantity
totalDistance
HKQuantity
metadata
HKMetadata

Devoluciones

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, HKWorkoutEvent[], HKQuantity, HKQuantity, NSDictionary)

Crea una actividad que dura de startDate a endDate.

[Foundation.Export("workoutWithActivityType:startDate:endDate:workoutEvents:totalEnergyBurned:totalDistance:metadata:")]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, HealthKit.HKWorkoutEvent[] workoutEvents, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, Foundation.NSDictionary metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * HealthKit.HKWorkoutEvent[] * HealthKit.HKQuantity * HealthKit.HKQuantity * Foundation.NSDictionary -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
workoutEvents
HKWorkoutEvent[]

Se agregará.

Este parámetro puede ser null.

totalEnergyBurned
HKQuantity

Se agregará.

Este parámetro puede ser null.

totalDistance
HKQuantity

Se agregará.

Este parámetro puede ser null.

metadata
NSDictionary

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate)

Crea una actividad que dura de startDate a endDate.

[Foundation.Export("workoutWithActivityType:startDate:endDate:")]
public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate

Devoluciones

Atributos

Se aplica a

Create(HKWorkoutActivityType, NSDate, NSDate, Double, HKQuantity, HKQuantity, HKMetadata)

Crea una actividad que dura de startDate a endDate.

public static HealthKit.HKWorkout Create (HealthKit.HKWorkoutActivityType workoutActivityType, Foundation.NSDate startDate, Foundation.NSDate endDate, double duration, HealthKit.HKQuantity totalEnergyBurned, HealthKit.HKQuantity totalDistance, HealthKit.HKMetadata metadata);
static member Create : HealthKit.HKWorkoutActivityType * Foundation.NSDate * Foundation.NSDate * double * HealthKit.HKQuantity * HealthKit.HKQuantity * HealthKit.HKMetadata -> HealthKit.HKWorkout

Parámetros

workoutActivityType
HKWorkoutActivityType
startDate
NSDate
endDate
NSDate
duration
Double
totalEnergyBurned
HKQuantity
totalDistance
HKQuantity
metadata
HKMetadata

Devoluciones

Se aplica a