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:

ParameterTypeDescription
appIdStringThe app id that is generated while creating an app asset within Webex Connect.
clientKeyStringThe 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:

ParameterTypeDescription
appIdStringThe app id that is generated while creating an app asset within Webex Connect.
clientKeyStringThe client key that is generated while creating an app asset within Webex Connect.
environmentICEnvironmentWebex 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:

ParameterTypeDescription
allowUnencryptedDatabaseFallbackbooleanIf 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:

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

allowUnencryptedDatabaseFallback

Returns the allowUnencryptedDatabaseFallback value.

Syntax: public boolean allowUnencryptedDatabaseFallback()

setShouldRequestNotificationPermission

This method sets whether it should request push notification permission on registration. By default push notification request on registration is enabled.

Syntax: public void setShouldRequestNotificationPermission(boolean enable)

shouldRequestNotificationPermission

This method returns whether push notification permission requested on registration

Syntax: public java.lang.Boolean shouldRequestNotificationPermission()

Returns: Returns true if push notification permission requested on registration