HHFW Framework

Requests to a mobile platform server are exchanged using the HHFWController main class. A class instance is created using the Singleton template.

To access the HHFWController class instance, use the sharedInstance static method.

To initialize the HHFW framework, execute the initWithCredentials method:

HHFWController.sharedInstance().initWithCredentials(_ api: String, host: String, environment: String, project: String, device: String)

Input parameters:

Parameter Data type Description
api String API version.
host String Server URL.
environment String Environment name.
project String Project name.
device String Device identifier.

Example of initialization:

let apiVersion: String = "v1" // Server API version
let host: String = "https://testmasterfmp.fsight.cloud" // host
let environment: String = "environment_test" // environment name
let project: String = "project_test" // project name
let device: String = (UIDevice.current.identifierForVendor?.uuidString)! // device identifier
 
HHFWController.sharedInstance().initWithCredentials(
    apiVersion,
    host: host,
    environment: environment,
    project: project,
    device: device
)

After the framework is initialized, use methods for mobile application development.

NOTE. Before executing the methods execute authentication on a mobile platform server by login and password or with password change.

To view examples of iOS framework use, see the Examples of iOS Framework Use section.

See also:

iOS Framework | Auxiliary Classes | Describing iOS Framework Methods | Examples of iOS Framework Use