MarketingCloudSdk

class MarketingCloudSdk : PushModuleInterface, ControlChannel.ControlChannelListener

Types

Link copied to clipboard
Returns an instance of InitializationStatus when the initialization of MarketingCloudSdk has completed.
Link copied to clipboard
Returns a valid instance of MarketingCloudSdk when it is ready.

Properties

Link copied to clipboard
@get:NonNull
open val analyticsManager: AnalyticsManager
Link copied to clipboard
@get:Nullable
open val instance: MarketingCloudSdk
Link copied to clipboard
open val isInitializing: Boolean
Link copied to clipboard
open val isReady: Boolean

Functions

Link copied to clipboard
@NonNull
open fun getEventManager(): EventManager
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getLogLevel(): Int
Link copied to clipboard
Returns the MarketingCloudConfig instance used to initialize the MarketingCloudSdk.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@NonNull
open fun getSdkState(): JSONObject
Link copied to clipboard
open fun getSdkVersionCode(): Int
Link copied to clipboard
@NonNull
open fun getSdkVersionName(): String
Link copied to clipboard
@MainThread
open fun init(@NonNull context: Context, @NonNull config: MarketingCloudConfig, @Nullable listener: MarketingCloudSdk.InitializationListener)
Initializes the SDK with the provided config.
Link copied to clipboard
open fun requestSdk(@NonNull listener: MarketingCloudSdk.WhenReadyListener)
An asynchronous request for an instance of MarketingCloudSdk.
open fun requestSdk(@Nullable looper: Looper, @NonNull listener: MarketingCloudSdk.WhenReadyListener)
An asynchronous request for a instance of MarketingCloudSdk.
Link copied to clipboard
open fun setLogLevel(level: Int)
Link copied to clipboard
open fun setLogListener(@Nullable logListener: MCLogListener)
Link copied to clipboard
Prevents a WhenReadyListener from returning an instance of MarketingCloudSdk