WorkoutCapabilities

public struct WorkoutCapabilities : OptionSet
extension WorkoutCapabilities: FitFieldCodeable

Workout Capabilities Options

  • Declaration

    Swift

    public let rawValue: UInt32
  • Declaration

    Swift

    public init(rawValue: UInt32)
  • Interval

    Declaration

    Swift

    public static let interval: WorkoutCapabilities
  • Custom

    Declaration

    Swift

    public static let custom: WorkoutCapabilities
  • Fitness Equipment

    Declaration

    Swift

    public static let fitnessEquipment: WorkoutCapabilities
  • First Beat

    Declaration

    Swift

    public static let firstBeat: WorkoutCapabilities
  • New Leaf

    Declaration

    Swift

    public static let newLeaf: WorkoutCapabilities
  • tcx

    TCX

    For backwards compatibility. Watch should add missing id fields then clear flag

    Declaration

    Swift

    public static let tcx: WorkoutCapabilities
  • Speed

    Speed source required for workout step

    Declaration

    Swift

    public static let speed: WorkoutCapabilities
  • Heart Rate

    Heart rate source required for workout step

    Declaration

    Swift

    public static let heartRate: WorkoutCapabilities
  • Distance

    Distance source required for workout step

    Declaration

    Swift

    public static let distance: WorkoutCapabilities
  • Cadence

    Cadence source required for workout step

    Declaration

    Swift

    public static let cadence: WorkoutCapabilities
  • Power

    Power source required for workout step

    Declaration

    Swift

    public static let power: WorkoutCapabilities
  • Grade

    Grade source required for workout step

    Declaration

    Swift

    public static let grade: WorkoutCapabilities
  • Resistance

    Resistance source required for workout step

    Declaration

    Swift

    public static let resistance: WorkoutCapabilities
  • Protected

    Declaration

    Swift

    public static let protected: WorkoutCapabilities

FitFieldCodeable

  • 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