Stroke
public enum Stroke : UInt8
extension Stroke: FitFieldCodeable
FIT Stroke Type
-
No Event
Declaration
Swift
case noEvent = 0
-
Other
stroke was detected but cannot be identified
Declaration
Swift
case other = 1
-
Serve
Declaration
Swift
case serve = 2
-
Forehand
Declaration
Swift
case forehand = 3
-
Backhand
Declaration
Swift
case backhand = 4
-
Smash
Declaration
Swift
case smash = 5
-
Invalid
Declaration
Swift
case invalid = 255
-
Encode Into Data
Declaration
Swift
public func encode(base: BaseTypeData) -> Data?
Parameters
base
BaseTypeData
-
Decode FIT Field
Declaration
Swift
public static func decode<T>(type: T.Type, data: Data, base: BaseTypeData, arch: Endian) -> T?
Parameters
type
Type of Field
data
Data to Decode
base
BaseTypeData
arch
Endian
Return Value
Decoded Value