SFMCSdk

class SFMCSdk

Configuration entry point to Mobile App Messaging, Marketing Cloud Engagement, Personalization, and Data Cloud (CDP). Configure the SDK and then get access to tracking (track) and Identity.

Usage Example:

// Configure the SDK with desired modules
SFMCSdk.configure(context, config) { status ->
if (status.status == InitializationStatus.SUCCESS) {
// SDK is ready to use
SFMCSdk.requestSdk { sdk ->
// Access SDK functionality
sdk.track(Event("app_open"))
sdk.identity.edit {
setProfileId("123")
}
}
}
}

Thread Safety:

The SDK is designed to be thread-safe and can be used from any thread. However, initialization should be performed on the main thread.

Since

1.0.0

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Identity class for identity management.

Functions

Link copied to clipboard
fun getSdkState(): JSONObject

Return the current state of all SDK modules