ICConfig
Learn how to configure environment settings, manage server domains, enable database fallback, and handle notification permissions.
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
Return Type | Method |
---|---|
String | getAppId() |
String | getClientKey() |
void | setServerDomain |
String | getServerDomain |
void | setAllowUnencryptedDatabaseFallback |
boolean | allowUnencryptedDatabaseFallback |
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()
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
Updated 5 days ago