CoreConfiguration

constructor(@Json(name = "Url") serviceAPI: URL, @Json(name = "OrganizationId") organizationId: String, @Json(name = "DeveloperName") developerName: String, isUserVerificationRequired: Boolean = false, remoteLocaleMap: Map<String, String> = emptyMap(), multimediaExtension: MultimediaCoreExtension? = null, clientType: ClientType = ClientType.MIAW_MOBILE_V1, clientName: ClientName = ClientName.MOBILE_IN_APP_SDK)

Parameters

serviceAPI

The service API endpoint URL from the config file (Url field).

organizationId

The Salesforce organization ID (OrganizationId field).

developerName

The API Name of the Embedded Service Deployment (DeveloperName field).

isUserVerificationRequired

Set to true if the deployment requires user verification.

remoteLocaleMap

Locale-to-language mapping for custom label resolution. See Configuration.remoteLocaleMap.

multimediaExtension

Optional extension enabling voice and video capabilities.

clientType

The client protocol version. Defaults to ClientType.MIAW_MOBILE_V1.

clientName

The SDK product name. Defaults to ClientName.MOBILE_IN_APP_SDK.


constructor(serviceAPI: String, organizationId: String, developerName: String, isUserVerificationRequired: Boolean = false, remoteLocaleMap: Map<String, String> = emptyMap(), multimediaExtension: MultimediaCoreExtension? = null, clientType: ClientType = ClientType.MIAW_MOBILE_V1, clientName: ClientName = ClientName.MOBILE_IN_APP_SDK)

Creates a configuration from string parameters.

Use this constructor when you have the service URL as a String rather than a URL. The serviceAPI string is converted to a URL internally.

Parameters

serviceAPI

The service API endpoint as a string (e.g., "https://myorg.my.salesforce-scrt.com").

organizationId

The Salesforce organization ID.

developerName

The API Name of the Embedded Service Deployment.

isUserVerificationRequired

Set to true if the deployment requires user verification.

remoteLocaleMap

Locale-to-language mapping for custom label resolution.

multimediaExtension

Optional extension enabling voice and video capabilities.

clientType

The client protocol version. Defaults to ClientType.MIAW_MOBILE_V1.

clientName

The SDK product name. Defaults to ClientName.MOBILE_IN_APP_SDK.

Throws


constructor(configuration: Configuration)

Creates a CoreConfiguration by copying values from an existing Configuration instance.

Parameters

configuration

The source Configuration to copy values from.