Creating and Initializing the Client Connection

Create and initialize SMPClientConnection.

The SMPClientConnection class declares the programmatic interface for an object that manages connection settings required for registering the user and fetching application settings from the server. An SMPClientConnection object has to be initialized and connection properties has to be set on this object before performing any type of user onboarding or before fetching any application settings from the server.

Syntax

The following code illustrates how to initialize an application:

 public ClientConnection(Context context, String appID, String Domain, String securityConfig, SDMRequestManager requestManager)

Examples

Usage

If the SDMRequestManager object defined above is used for Request/Response, set the following additional preference:
pref.setStringPreference(ISDMPreferences.SDM_CONNECTIVITY_HANDLER_CLASS_ NAME, SDMConstants.SDM_HTTP_HANDLER_CLASS);