Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
const val SDK_VERSION_NAME: String

Functions

Link copied to clipboard
@MainThread
@JvmStatic
@JvmOverloads
fun configure(context: Context, config: SFMCSdkModuleConfig, listener: InitializationListener? = null)

Initializes the SDK with the provided SFMCSdkModuleConfig. Once complete, the InitializationListener will be notified.
Any subsequent calls to this method will be ignored as long as the values provided in SFMCSdkModuleConfig are the same.
Note: Anyone that calls requestSdk before or during the initialization will be notified before the InitializationListener will be notified.

Link copied to clipboard
@JvmStatic
fun requestSdk(listener: SFMCSdkReadyListener)

An asynchronous request for a instance of SFMCSdk.

Link copied to clipboard
@JvmStatic
fun setLogging(level: LogLevel, listener: LogListener?, vararg modules: ModuleLogger)

Enable/Disable Logging in the SFMCSdk.

Link copied to clipboard
@JvmStatic
fun track(vararg events: Event?)