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")
}
}
}
}Content copied to clipboard
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