ActivityType

public enum ActivityType : UInt8
extension ActivityType: FitFieldCodeable

FIT Activity Type

  • Generic Activity

    Declaration

    Swift

    case generic = 0
  • Running

    Declaration

    Swift

    case running = 1
  • Cycling

    Declaration

    Swift

    case cycling = 2
  • Multi-Sport Transition

    Declaration

    Swift

    case transition = 3
  • Fitness Equipment

    Declaration

    Swift

    case fitnessEquipment = 4
  • Swimming

    Declaration

    Swift

    case swimming = 5
  • Walking

    Declaration

    Swift

    case walking = 6
  • Sedentary

    Declaration

    Swift

    case sedentary = 8
  • all

    All

    Declaration

    Swift

    case all = 254
  • Invalid Activity

    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