Goal

public enum Goal : UInt8
extension Goal: FitFieldCodeable

FIT Goal type

  • Time

    Declaration

    Swift

    case time = 0
  • Distance

    Declaration

    Swift

    case distance = 1
  • Calories

    Declaration

    Swift

    case calories = 2
  • Frequency

    Declaration

    Swift

    case frequency = 3
  • Steps

    Declaration

    Swift

    case steps = 4
  • Ascent

    Declaration

    Swift

    case ascent = 5
  • Active Minutes

    Declaration

    Swift

    case activeMinutes = 6
  • Invalid

    Declaration

    Swift

    case invalid = 255

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