SessionTrigger

public enum SessionTrigger : UInt8
extension SessionTrigger: FitFieldCodeable

FIT Session Trigger Type

  • Activity End

    Declaration

    Swift

    case activityEnd = 0
  • Manual

    User changed sport

    Declaration

    Swift

    case manual = 1
  • Auto Multi Sport

    Auto multi-sport feature is enabled and user pressed lap button to advance session

    Declaration

    Swift

    case autoMultiSport = 2
  • Fitness Eqiupment

    Auto sport change caused by user linking to fitness equipment

    Declaration

    Swift

    case fitnessEquipment = 3
  • 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