WorkoutMessage
@available(swift 4.2)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
open class WorkoutMessage : FitMessage
FIT Workout Message
-
FIT Message Global Number
Declaration
Swift
public override class func globalMessageNumber() -> UInt16
-
Sport
Declaration
Swift
@FitField private(set) public var sport: Sport? { get set }
-
Capabilities
Declaration
Swift
@FitField private(set) public var capabilities: WorkoutCapabilities? { get set }
-
Number of Valid Steps
Declaration
Swift
@FitField private(set) public var numberOfValidSteps: UInt16? { get set }
-
Workout Name
Declaration
Swift
@FitField private(set) public var workoutName: String? { get set }
-
Sub Sport
Declaration
Swift
@FitField private(set) public var subSport: SubSport? { get set }
-
Pool Length
Declaration
Swift
@FitFieldDimension private(set) public var poolLength: Measurement<UnitLength>? { get set }
-
Pool Length Unit
Declaration
Swift
@FitField private(set) public var poolLengthUnit: MeasurementDisplayType? { get set }
-
Undocumented
Declaration
Swift
public required init()
-
Undocumented
Declaration
Swift
public convenience init(workoutName: String? = nil, numberOfValidSteps: UInt16? = nil, poolLength: Measurement<UnitLength>? = nil, poolLengthUnit: MeasurementDisplayType? = nil, sport: Sport? = nil, subSport: SubSport? = nil, capabilities: WorkoutCapabilities? = nil)