This version of the SDK added one more new constructor with environment parameter and some new method to pass or get the environment value.

📘

Note:

If not sets the environment then default value will be UK.

Public Constructors

ICConfig(String appId, String clientKey)

[ICConfig](String appId, String clientKey, ICEnvironment environment)

Public Methods

ICConfig

This method is used to initialize an ICConfig instance with an appId and clientKey.

Syntax: ICConfig(String appId, String clientKey)

Parameters:

Parameter

Type

Description

appId

String

The app id that is generated while creating an app asset within Webex Connect.

clientKey

String

The client key that is generated while creating an app asset within Webex Connect.

ICConfig (new constructer)

This method is used to initialize an ICConfig instance with an appId, clientKey and environment.

Syntax: public void ICConfig(String appId, String clientKey, ICEnvironment environment)

Parameters:

Parameter

Type

Description

appId

String

The app id that is generated while creating an app asset within Webex Connect.

clientKey

String

The client key that is generated while creating an app asset within Webex Connect.

environment

ICEnvironment

Webex Connect server environment

getEnvironment

Returns the environment.

Syntax: public ICEnvironment getEnvironment()

setAllowUnencryptedDatabaseFallback

Sets flag to allow creating a default SQLite database when SQLcipher fails.

Syntax: void setAllowUnencryptedDatabaseFallback(boolean allowUnencryptedDatabaseFallback)

Parameters:

Parameter

Type

Description

allowUnencryptedDatabaseFallback

boolean

If true, it allows creating a default SQLite database when SQLcipher fails

allowUnencryptedDatabaseFallback

Returns the allowUnencryptedDatabaseFallback value.

Syntax: public boolean allowUnencryptedDatabaseFallback()

getAppId

Returns the app id.

Syntax: String getAppId()

Return Value: Returns the appid.

getClientKey

Returns the client key.

Syntax: String getClientKey()

Return Value: Returns the client key.

setServerDomain

Sets your server domain (to override the zero-rating domain).

Syntax: void setServerDomain(final String serverDomain)

getServerDomain

Returns the configured server domain.

Syntax: String getServerDomain()

setAllowUnencryptedDatabaseFallback

Sets flag to allow creating a default SQLite database when SQLcipher fails.

Syntax: void setAllowUnencryptedDatabaseFallback(boolean allowUnencryptedDatabaseFallback)

Parameters:

Parameter

Type

Description

allowUnencryptedDatabaseFallback

boolean

If true, it allows creating a default SQLite database when SQLcipher fails.

allowUnencryptedDatabaseFallback

Returns the allowUnencryptedDatabaseFallback value.

Syntax: public boolean allowUnencryptedDatabaseFallback()