Config
Enum class representing different environments in Webex Connect.
The Config class is a configuration class used for the SDK. It includes properties such as appId, clientKey, environment, serverDomain, and allowUnencryptedDatabaseFallback.
Syntax: class Config(appId: String, val clientKey: String, val environment: Environment = Environment.UK)
Constructors
| Public Constructor | Syntax |
|---|---|
| Config | constructor(appId: String, clientKey: String, environment: Environment = Environment.UK) |
Config
This method is used to initialize a Config instance with an appId, clientKey, and environment.
Syntax: constructor(appId: String, clientKey: String, environment: Environment = Environment.UK)
Properties
| Return Type | Property Name | Description |
|---|---|---|
| String | appId | var appId: StringThe appId is generated while creating an app asset within Webex Connect. |
| String | clientKey | val clientKey: StringThe client key is generated while creating an app asset within Webex Connect. |
| void | environment | val environment: EnvironmentWebex Connect server environment |
| Boolean | allowUnencryptedDatabaseFallback | var allowUnencryptedDatabaseFallback: BooleanFlag indicating whether unencrypted database fallback is allowed. |
| String | serverDomain | var serverDomain: String?The server domain for the application (to override the zero-rating domain). |
appId
Returns the appId.
Syntax: var appId: String
clientKey
Returns the client key.
Syntax: val clientKey: String
environment
Returns the Webex Connect server environment.
Syntax: val environment: Environment
allowUnencryptedDatabaseFallback
Flag indicating whether unencrypted database fallback is allowed.
Syntax: var allowUnencryptedDatabaseFallback: Boolean
serverDomain
The server domain for the application to override the zero-rating domain.
Syntax: var serverDomain: String?
Updated 7 months ago
