+

Search Tips | Advanced Search

Skip navigation links

Index Overview

PREV CLASS NEXT CLASS FRAMES (opens in new window)



Class WL.Client

WL.Client



Method Summary
Method Attributes Method Name and Description
 

addGlobalHeader(headerName, headerValue)

The HTTP header is used in all requests until removed by the

    WL.Client.removeGlobalHeader API call.
    							
    						
    					
    						
 

clearSharedToken(Object)

Clears a previously saved value associated with key.

 

createGatewayChallengeHandler(gatewayName)

Creates a challenge handler responsible for handling responses from a third party gateway.

 

createSecurityCheckChallengeHandler(securityCheckName)

Creates a challenge handler object to handle challenges sent by the MobileFirst Server.

 

deleteCookie(name)

Deletes a cookie from the native HTTP client cookie storage.

 

getCookies()

Retrieves cookies from the native HTTP client.

 

getDeviceDisplayName(options)

Gets the display name of the device.

 

getEnvironment()

 

getLanguage()

This method returns the language or dialect code of the language currently being used for the application.

 

getSharedToken(Object)

Returns the previously saved value associated with key.

 

init(options)

Initializes the WL.Client object.

 

invokeProcedure(invocationData, options)

 

pinTrustedCertificatePublicKey(certificateFilename/certificateFilenames)

Pins the host X509 certificate public key to the client application.

 

reloadApp()

Reloads the application It can be used to recover an application from errors.

 

removeGlobalHeader(headerName)

 

setCookie(cookie)

Adds a cookie to the native HTTP client.

 

setDeviceDisplayName(deviceDisplayName, options)

Sets the display name of the device.

 

setHeartBeatInterval(interval)

Sets the interval of the heartbeat signal.

 

setSharedToken(Object)

Saves a key/value pair such that it is available to other applications.

Method Detail

addGlobalHeader

addGlobalHeader(headerName, headerValue)

The HTTP header is used in all requests until removed by the


clearSharedToken

clearSharedToken(Object)

Clears a previously saved value associated with key. This function clears a previously saved value associated with key from applications participating in simple shared data who are in the same application family, defined by the same family name and same application signing key. This API call is only applicable in Android and IOS environments. It is a safe, but no-op, call in other environments.

    Parameters:
    Object - Mandatory. Object containing the key to clear, like {key: 'myKey'}

    Returns:
    Promise


createGatewayChallengeHandler

createGatewayChallengeHandler(gatewayName)

Creates a challenge handler responsible for handling responses from a third party gateway. An arbitrary name must be supplied as a parameter. When we create a