DisplayOrientation

public enum DisplayOrientation : UInt8
extension DisplayOrientation: FitFieldCodeable

FIT Display Orientation

  • Automatic

    Declaration

    Swift

    case auto = 0
  • Portrait

    Declaration

    Swift

    case portrait = 1
  • Landscape

    Declaration

    Swift

    case landscape = 2
  • Portrait Flipped

    180 Degress

    Declaration

    Swift

    case portraitFlipped = 3
  • Landscape Flipped

    180 degress

    Declaration

    Swift

    case landscapeFlipped = 4
  • 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