The FMPUtils.FMPData.Builder class is a builder for the FMPUtils.FMPData class.
class Builder
Method | Description |
value(_:) | Save value to variable. func value(_ value: Data) -> Builder Parameters:
|
key(_:) | Save encryption key to variable. func key(_ key: String) -> Builder Parameters:
|
build() | Build an instance of the FMPUtils.FMPData class. It returns the object of the FMPUtils.FMPData type. func build() -> FMPUtils.FMPData |
Build an instance of the FMPUtils.FMPData class:
let dataValue: Data
// Build an instance of the FMPUtils.FMPData class
let data: FMPUtils.FMPData = FMPUtils().data
.value(dataValue) // By default Data()
.key("key") // By default ""
.build()
See also: