sfmcsdk / com.salesforce.marketingcloud.sfmcsdk / SFMCSdkComponents

SFMCSdkComponents

class SFMCSdkComponents

This class provides helper components for Modules.

Properties

behaviorManager

The BehaviorManager allows you to register your module to listen for events that occur during the lifecycle of your application and be notified when those events occur.

val behaviorManager: BehaviorManager

encryptionManager

Provides your module a solution to easily EncryptionManager.encrypt and/or EncryptionManager.decrypt data

val encryptionManager: EncryptionManager

eventManager

The EventManager allows you to send events Event to all subscribers registered via EventSubscriber

val eventManager: EventManager

executors

Provides your module a convenient way to execute long-running tasks off the main thread.

val executors: SdkExecutors

identity

The Identity instance which helps in setting the profile information to the various Modules like PUSH , CDP

val identity: Identity

moduleApplicationId

Unique Id per module. This value is set via Config interface while creating Module config

val moduleApplicationId: String

registrationId

The registrationId is a unique Id for the SFMCSdk. This is used to create the identity Identity and used in StorageManager for creating the module installation file names accordingly

val registrationId: String

storageManager

Provides your module with access to a Secure SharedPreferences instance.

val storageManager: StorageManager

Functions

createNetworkManager

Create an instance of NetworkManager to communicate with the your auth servers.

fun createNetworkManager(authenticator: Authenticator? = null): NetworkManager