FitFileEncoder
@available(swift 4.2)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
public struct FitFileEncoder
FIT File Encoder
-
Options for Validity Strategy
See moreDeclaration
Swift
public enum ValidityStrategy
-
The strategy to use for Data Validity Strategy. Defaults to
.none
.Declaration
Swift
public var dataValidityStrategy: ValidityStrategy
-
Init FitFileEncoder
Declaration
Swift
public init(dataValidityStrategy: ValidityStrategy = .none)
Parameters
dataValidityStrategy
Validity Strategy
-
Encode FITFile
Declaration
Swift
func encode(fildIdMessage: FileIdMessage, messages: [FitMessage]) -> Result<Data, FitEncodingError>
Parameters
fildIdMessage
FileID Message
messages
Array of other FitMessages
Return Value
Data Result