FMPUtils.FMPString.Builder

Description

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

class Builder

Methods

Method Description
value(_:) Save value to variable.
func value(_ value: String) -> 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.FMPString class. It returns the object of the FMPUtils.FMPString type.
func build() -> FMPUtils.FMPString

Example

Build an instance of the FMPUtils.FMPString class:

let stringValue: String
  
// Build an instance of the FMPUtils.FMPString class
let string: FMPUtils.FMPString = FMPUtils().string
    .value(stringValue) // By default ""
    .key("key") // By default ""
    .build()

See also:

FMPWrapper Framework | Classes