ActivityLapExtension
@available(swift 4.0)
public struct ActivityLapExtension
TCX Activity Lap Extension
-
Distance in Meters
Declaration
Swift
private(set) public var avgSpeed: Double?
-
Undocumented
Declaration
Swift
private(set) public var maximumBikeCadence: UInt8?
-
Undocumented
Declaration
Swift
private(set) public var averageRunCadence: UInt8?
-
Undocumented
Declaration
Swift
private(set) public var maximumRunCadence: UInt8?
-
Steps
Declaration
Swift
private(set) public var steps: UInt16?
-
Average Watts
Declaration
Swift
private(set) public var averageWatts: UInt16?
-
Maximum Watts
Declaration
Swift
private(set) public var maximumWatts: UInt16?
-
init(avgSpeed:maximumBikeCadence:averageRunCadence:maximumRunCadence:steps:averageWatts:maximumWatts:)
Undocumented
Declaration
Swift
public init (avgSpeed: Double?, maximumBikeCadence: UInt8?, averageRunCadence: UInt8?, maximumRunCadence: UInt8?, steps: UInt16?, averageWatts: UInt16?, maximumWatts: UInt16?)
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
a
andb
,a == b
implies thata != b
isfalse
.Declaration
Swift
public static func == (lhs: ActivityLapExtension, rhs: ActivityLapExtension) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
Coding Keys
See moreDeclaration
Swift
public enum CodingKeys : String, CodingKey
-
Alternate Coding Keys
See moreDeclaration
Swift
public enum AlternateCodingKeys : String, CodingKey
-
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.