GoalMessage
@available(swift 4.2)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
open class GoalMessage : FitMessage
FIT Stride Based Speed and Distance Monitor (SDM) Profile 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 }
-
Sub Sport
Declaration
Swift
@FitField private(set) public var subSport: SubSport? { get set }
-
Start Date
Declaration
Swift
@FitFieldTime private(set) public var startDate: FitTime? { get set }
-
End Date
Declaration
Swift
@FitFieldTime private(set) public var endDate: FitTime? { get set }
-
Goal Value
Declaration
Swift
@FitField private(set) public var goalValue: UInt32? { get set }
-
Repeat Goal
Declaration
Swift
@FitField private(set) public var repeatGoal: Bool? { get set }
-
Goal Target Value
Declaration
Swift
@FitField private(set) public var targetValue: UInt32? { get set }
-
Goals Recurrence
Declaration
Swift
@FitField private(set) public var recurrence: GoalRecurrence? { get set }
-
Goal Recurrence Value
Declaration
Swift
@FitField private(set) public var recurrenceValue: UInt16? { get set }
-
Goal Enabled
Declaration
Swift
@FitField private(set) public var enabled: Bool? { get set }
-
Goal Source
Declaration
Swift
@FitField private(set) public var source: GoalSource? { get set }
-
Message Index
Declaration
Swift
@FitField private(set) public var messageIndex: MessageIndex? { get set }
-
Undocumented
Declaration
Swift
public required init()
-
init(messageIndex:
startDate: endDate: sport: subSport: goalType: goalValue: repeatGoal: targetValue: recurrence: recurrenceValue: enabled: source: ) Undocumented
Declaration
Swift
public convenience init(messageIndex: MessageIndex? = nil, startDate: FitTime? = nil, endDate: FitTime? = nil, sport: Sport? = nil, subSport: SubSport? = nil, goalType: Goal? = nil, goalValue: UInt32? = nil, repeatGoal: Bool? = nil, targetValue: UInt32? = nil, recurrence: GoalRecurrence? = nil, recurrenceValue: UInt16? = nil, enabled: Bool? = nil, source: GoalSource? = nil)