AutoActivityDetect
public struct AutoActivityDetect : OptionSet
extension AutoActivityDetect: FitFieldCodeable
Auto Activity Detect
-
Declaration
Swift
public let rawValue: UInt32
-
Declaration
Swift
public init(rawValue: UInt32)
-
None
Declaration
Swift
public static let none: AutoActivityDetect
-
Running
Declaration
Swift
public static let running: AutoActivityDetect
-
Cycling
Declaration
Swift
public static let cycling: AutoActivityDetect
-
Swimming
Declaration
Swift
public static let swimming: AutoActivityDetect
-
Walking
Declaration
Swift
public static let walking: AutoActivityDetect
-
Elliptical
Declaration
Swift
public static let elliptical: AutoActivityDetect
-
Sedentary
Declaration
Swift
public static let sedentary: AutoActivityDetect
-
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