CoreConfiguration
The default Configuration implementation used to create a CoreClient instance.
Create a CoreConfiguration using one of the following approaches:
From a config file (recommended) -- download the JSON config file from your Salesforce Embedded Service Deployment (Setup > Embedded Service Deployments > Get Code File) and place it in your app's assets/ directory:
Parameters
The service API endpoint URL from the config file (Url field).
The Salesforce organization ID (OrganizationId field).
The API Name of the Embedded Service Deployment (DeveloperName field).
Set to true if the deployment requires user verification.
Locale-to-language mapping for custom label resolution. See Configuration.remoteLocaleMap.
Optional extension enabling voice and video capabilities.
The client protocol version. Defaults to ClientType.MIAW_MOBILE_V1.
The SDK product name. Defaults to ClientName.MOBILE_IN_APP_SDK.
See also
Samples
val configuration = CoreConfiguration.fromFile(
context,
remoteLocaleMap = mapOf("en-CA" to "en", "fr-FR" to "fr", "default" to "en")
)val configuration = CoreConfiguration(
serviceAPI = URL("https://myorg.my.salesforce-scrt.com"),
organizationId = "00D000000000001",
developerName = "My_Messaging_Deployment"
)Constructors
Creates a configuration from string parameters.
Creates a CoreConfiguration by copying values from an existing Configuration instance.