다음을 통해 공유


HKWorkoutEvent.Create 메서드

정의

오버로드

Create(HKWorkoutEventType, NSDate)

개발자는 이 사용되지 않는 메서드를 사용하면 안 됩니다. 개발자는 대신 '만들기(HKWorkoutEventType, NSDateInterval, HKMetadata)'를 사용해야 합니다.

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

Create(HKWorkoutEventType, NSDate)

개발자는 이 사용되지 않는 메서드를 사용하면 안 됩니다. 개발자는 대신 '만들기(HKWorkoutEventType, NSDateInterval, HKMetadata)'를 사용해야 합니다.

[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

매개 변수

date
NSDate

반환

특성

적용 대상

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

매개 변수

date
NSDate
metadata
NSDictionary

반환

특성

적용 대상

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

매개 변수

date
NSDate
metadata
HKMetadata

반환

특성

적용 대상

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

매개 변수

dateInterval
NSDateInterval
metadata
NSDictionary

추가될 예정입니다.

이 매개 변수는 null일 수 있습니다.

반환

특성

적용 대상

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

매개 변수

dateInterval
NSDateInterval
metadata
HKMetadata

반환

특성

적용 대상