Freigeben über


HKWorkoutEvent.Create Methode

Definition

Überlädt

Create(HKWorkoutEventType, NSDate)

Entwickler sollten diese veraltete Methode nicht verwenden. Entwickler sollten stattdessen "Create (HKWorkoutEventType, NSDateInterval, HKMetadata)" verwenden.

Create(HKWorkoutEventType, NSDate, NSDictionary)
Create(HKWorkoutEventType, NSDate, HKMetadata)
Create(HKWorkoutEventType, NSDateInterval, NSDictionary)
Create(HKWorkoutEventType, NSDateInterval, HKMetadata)

Create(HKWorkoutEventType, NSDate)

Entwickler sollten diese veraltete Methode nicht verwenden. Entwickler sollten stattdessen "Create (HKWorkoutEventType, NSDateInterval, HKMetadata)" verwenden.

[Foundation.Export("workoutEventWithType:date:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")]
public static HealthKit.HKWorkoutEvent Create (HealthKit.HKWorkoutEventType type, Foundation.NSDate date);
static member Create : HealthKit.HKWorkoutEventType * Foundation.NSDate -> HealthKit.HKWorkoutEvent

Parameter

date
NSDate

Gibt zurück

Attribute

Gilt für:

Create(HKWorkoutEventType, NSDate, NSDictionary)

[Foundation.Export("workoutEventWithType:date:metadata:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")]
[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.HKWorkoutEvent Create (HealthKit.HKWorkoutEventType type, Foundation.NSDate date, Foundation.NSDictionary metadata);
static member Create : HealthKit.HKWorkoutEventType * Foundation.NSDate * Foundation.NSDictionary -> HealthKit.HKWorkoutEvent

Parameter

date
NSDate
metadata
NSDictionary

Gibt zurück

Attribute

Gilt für:

Create(HKWorkoutEventType, NSDate, HKMetadata)

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Create (HKWorkoutEventType, NSDateInterval, HKMetadata)' instead.")]
[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.HKWorkoutEvent Create (HealthKit.HKWorkoutEventType type, Foundation.NSDate date, HealthKit.HKMetadata metadata);
static member Create : HealthKit.HKWorkoutEventType * Foundation.NSDate * HealthKit.HKMetadata -> HealthKit.HKWorkoutEvent

Parameter

date
NSDate
metadata
HKMetadata

Gibt zurück

Attribute

Gilt für:

Create(HKWorkoutEventType, NSDateInterval, NSDictionary)

[Foundation.Export("workoutEventWithType:dateInterval:metadata:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKWorkoutEvent Create (HealthKit.HKWorkoutEventType type, Foundation.NSDateInterval dateInterval, Foundation.NSDictionary metadata);
static member Create : HealthKit.HKWorkoutEventType * Foundation.NSDateInterval * Foundation.NSDictionary -> HealthKit.HKWorkoutEvent

Parameter

dateInterval
NSDateInterval
metadata
NSDictionary

Muss hinzugefügt werden.

Dieser Parameter kann null sein.

Gibt zurück

Attribute

Gilt für:

Create(HKWorkoutEventType, NSDateInterval, HKMetadata)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static HealthKit.HKWorkoutEvent Create (HealthKit.HKWorkoutEventType type, Foundation.NSDateInterval dateInterval, HealthKit.HKMetadata metadata);
static member Create : HealthKit.HKWorkoutEventType * Foundation.NSDateInterval * HealthKit.HKMetadata -> HealthKit.HKWorkoutEvent

Parameter

dateInterval
NSDateInterval
metadata
HKMetadata

Gibt zurück

Attribute

Gilt für: