InboxFeature

class InboxFeature : ModuleInterface

Public entry point for the Inbox feature within the Salesforce Marketing Cloud SDK. Implements ModuleInterface so the unified SDK can report state and dispatch scheduled jobs to Inbox.

Owns Inbox storage, the public InboxMessageManager, the runtime enable/disable toggle and GDPR handling. Mirrors the shape of the other feature modules, InAppMessagingFeature and MobileAppMessaging.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val state: JSONObject

Returns the current state of the InboxFeature module as a JSONObject.

Functions

Link copied to clipboard

Disables Inbox at runtime and persists the choice across restarts. Fetched messages are no longer stored; a later GDPR block still wipes the stored messages.

Link copied to clipboard

Enables Inbox at runtime and persists the choice across restarts. Refused (logged, no state change) while GDPR-blocked. When Inbox goes from disabled to enabled, fetching resumes.

Link copied to clipboard

Returns the InboxFeatureConfig used to initialize this instance.

Link copied to clipboard

Returns the InboxMessageManager, the public read / mutate / refresh surface for Inbox.

Link copied to clipboard

Returns the last known InboxFeatureInitializationStatus, or null if the module is torn down.

Link copied to clipboard
fun isInboxEnabled(): Boolean

Returns true if Inbox is currently active. Precedence is GDPR block > runtime toggle > config default; a GDPR block returns false even if Inbox was enabled at runtime.

Link copied to clipboard
fun isTornDown(): Boolean

True if the module has been torn down and must be re-initialized before use.