FMPUtils.FMPData.Builder

Description

The FMPUtils.FMPData.Builder class is a builder for the FMPUtils.FMPData class.

class Builder

Methods

Method Description
value(_:) Save value to variable.
func value(_ value: Data) -> Builder

Parameters:

  • value. Value.

key(_:) Save encryption key to variable.
func key(_ key: String) -> Builder

Parameters:

  • key. Encryption key.

build() Build an instance of the FMPUtils.FMPData class. It returns the object of the FMPUtils.FMPData type.
func build() -> FMPUtils.FMPData

Example

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:

FMPWrapper Framework | Classes