UIClient

interface UIClient

The entry point for the Messaging for In-App UI SDK.

UIClient provides the primary interface for launching and configuring the pre-built messaging UI. It manages the lifecycle of the conversation view and bridges between the UI layer and the underlying CoreClient business logic.

Obtain an instance using UIClient.Factory:

See also

Samples

val configuration = UIConfiguration(
    serviceAPI = "https://myorg.my.salesforce-scrt.com",
    organizationId = "00D000000000001AAA",
    developerName = "My_Deployment",
    conversationId = UUID.randomUUID()
)
val uiClient = UIClient.Factory.create(configuration)

Types

Link copied to clipboard
object Companion

Factory for creating, retrieving, and destroying UIClient instances.

Properties

Link copied to clipboard

The UIConfiguration that this instance was created with.

Link copied to clipboard

A provider for pre-populating visible pre-chat field values before the form is displayed.

Link copied to clipboard

A container for customizing the Composable components rendered in the messaging UI.

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun coreClient(context: Context): CoreClient

Returns the CoreClient instance associated with this UI client.

Link copied to clipboard

Creates an Intent for launching the messaging UI activity.

Link copied to clipboard
open fun MessagingInAppUI(onExit: () -> Unit)

A Composable that renders the full messaging UI for this client instance.

Link copied to clipboard
abstract fun openConversationActivity(context: Context)

Launches the messaging UI in a new full-screen activity.