MobileAppMessaging

The main entry point for the MobileAppMessaging module in the Salesforce Marketing Cloud Unified SDK. This class implements a singleton pattern with asynchronous initialization and component management.

Package: com.salesforce.marketingcloud.mobileappmessaging

Inheritance: MobileAppMessaging : ModuleInterface


Companion object for the MobileAppMessaging class.

Functional interface for receiving initialization completion callbacks.

Handler class for processing asynchronous SDK requests.

Parameters:

  • looper - Optional Looper for handler operations
  • listener - The WhenReadyListener callback

Functional interface callback for when the MobileAppMessaging module is ready for use.


Provides the current state of the MobileAppMessaging SDK as a JSON object.

Returns: JSONObject containing:

  • Module information
  • Readiness status
  • Initialization configuration
  • Component states
  • Storage manager status
  • Error object if state creation fails

Retrieves the analytics component for managing analytics state.

Returns: AnalyticsManager instance

Retrieves the registration component for managing device registration.

Returns: RegistrationManager instance

Gets the version name of the module.

Returns: String representing the module version