init
TypeScriptstatic initTypeDate(type: HKWorkoutEventType, date: globalThis.Date): HKWorkoutEventSwift declarationconvenience init(type: HKWorkoutEventType, date: Date)class · iOS 8.0+ · SDK 27.1
class HKWorkoutEventstatic initTypeDate(type: HKWorkoutEventType, date: globalThis.Date): HKWorkoutEventSwift declarationconvenience init(type: HKWorkoutEventType, date: Date)static initTypeDateMetadata(type: HKWorkoutEventType, date: globalThis.Date, metadata: Record<string, unknown>): HKWorkoutEventSwift declarationconvenience init(type: HKWorkoutEventType, date: Date, metadata: [String : Any])static initTypeDateIntervalMetadata(type: HKWorkoutEventType, dateInterval: _Foundation_DateInterval, metadata?: (Record<string, unknown>) | null): HKWorkoutEventSwift declarationconvenience init(type: HKWorkoutEventType, dateInterval: DateInterval, metadata: [String : Any]?)get date(): globalThis.DateSwift declarationvar date: Date { get }get dateInterval(): _Foundation_DateIntervalSwift declarationvar dateInterval: DateInterval { get }get metadata(): (Record<string, unknown>) | nullSwift declarationvar metadata: [String : Any]? { get }get type(): HKWorkoutEventTypeSwift declarationvar type: HKWorkoutEventType { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
HKWorkoutEvent.init()
inherited init: cannot prove legal (class declares 3 custom initializers)