CoreClientFactory

Factory for creating and destroying CoreClient instances.

Access the factory via CoreClient.Factory:

See also

Samples

val configuration = CoreConfiguration(
    serviceAPI = URL("https://myorg.my.salesforce-scrt.com"),
    organizationId = "00D000000000001",
    developerName = "My_Messaging_Deployment"
)
val coreClient = CoreClient.Factory.create(context, configuration)

Properties

Link copied to clipboard
abstract val sdkVersion: String

The version string of the installed Messaging for In-App SDK.

Functions

Link copied to clipboard
abstract fun create(context: Context, configuration: Configuration): CoreClient

Creates or retrieves the CoreClient singleton instance for the given configuration.

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

Destroys the CoreClient singleton instance, releasing all associated resources.