FitFileMerger
@available(swift 4.2)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
public struct FitFileMerger
FIT File Merger
-
Options for CRC Checking
See moreDeclaration
Swift
public enum CrcCheckingStrategy
-
The strategy to use for CRC Checking. Defaults to
.throws
.Declaration
Swift
public var crcCheckingStrategy: CrcCheckingStrategy
-
Options for Data Merging
See moreDeclaration
Swift
public enum DataMergingStrategy
-
The strategy to use for Data Merging. Defaults to
.default
.Declaration
Swift
public var dataMergingStrategy: DataMergingStrategy
-
Undocumented
Declaration
Swift
public init(crcCheckingStrategy: CrcCheckingStrategy = .throws, dataMergingStrategy: DataMergingStrategy = .default)
-
Merge FIT Files
Throws
FitErrorDeclaration
Swift
func merge(files: [Data]) -> Result<Data, FitDecodingError>
Parameters
files
Array of FIT files as Data
Return Value
FIT File Data