UIConfiguration
Creates a UIConfiguration from explicit string parameters.
Use this constructor when you have the deployment values as strings rather than a pre-built Configuration object. The serviceAPI string is converted to a URL internally.
Parameters
The service API endpoint as a string (e.g., "https://myorg.my.salesforce-scrt.com").
The 18-character Salesforce organization ID.
The API Name of the Embedded Service Deployment.
A unique identifier for the conversation.
When true (default), the conversation is created on pre-chat submit.
Set to true if the deployment requires user verification.
Controls how tappable URLs are opened. Defaults to UrlDisplayMode.InlineBrowser.
Locale-to-language mapping for custom label resolution.
Controls file attachment permissions and constraints.
Controls transcript download availability.
Controls agent display behavior.
Controls conversation menu options.
Optional extension enabling voice and video capabilities.
See also
Throws
If serviceAPI is not a valid URL.
Samples
val configuration = UIConfiguration(
serviceAPI = "https://myorg.my.salesforce-scrt.com",
organizationId = "00D000000000001AAA",
developerName = "My_Deployment",
conversationId = UUID.randomUUID()
)Creates a UIConfiguration from an existing Configuration instance.
This is the recommended constructor when using CoreConfiguration.fromFile to load deployment settings. Connection details (service URL, org ID, developer name, locale map, and user verification setting) are inherited from the provided configuration.
Parameters
A Configuration supplying deployment connection details. Typically obtained via CoreConfiguration.fromFile.
A unique identifier for the conversation.
When true (default), the conversation is created on pre-chat submit.
Controls how tappable URLs are opened. Defaults to UrlDisplayMode.InlineBrowser.
Controls file attachment permissions and constraints.
Controls transcript download availability.
Controls agent display behavior.
Controls conversation menu options.