Inbox Message Details
-
Public protocol representing an inbox message from the Marketing Cloud. Consumers receive instances of this protocol via
See moreInboxFeaturemethods. Every property is read-only: an inbox message is an immutable snapshot of what the SDK received. Optional properties arenilwhen the backend did not supply a value.Declaration
Swift
@objc(SFMCSdkInboxMessage) public protocol InboxMessage -
The kind of inbox message, surfaced via
See moreInboxMessage/inboxMessageType.Declaration
Swift
@objc(SFMCSdkInboxMessageType) public enum InboxMessageType : Int -
Known
audienceTypevalues the server sends today.
See moreaudienceTypeis a raw string, passed through verbatim. It is not limited to these constants — keep anelsefor unknown values. Missing or empty defaults todevice.Declaration
Swift
@objc(SFMCSdkInboxAudienceType) public final class InboxAudienceType : NSObject -
Action metadata associated with an inbox button.
See moreDeclaration
Swift
@objc(SFMCSdkInboxAction) public protocol InboxAction -
Display text for an inbox subject, subtitle, or body.
See moreDeclaration
Swift
@objc(SFMCSdkInboxText) public protocol InboxText -
Immutable button metadata delivered with an inbox message.
See moreDeclaration
Swift
@objc(SFMCSdkInboxButton) public protocol InboxButton -
Declaration
Swift
@objc(SFMCSdkInboxMedia) public protocol InboxMedia -
Known
typevalues the server sends today.
See moretypeis a raw string, passed through verbatim. It is not limited to these constants — keep anelsefor unknown values. Missing or empty authored value isnil.Declaration
Swift
@objc(SFMCSdkInboxMediaType) public final class InboxMediaType : NSObject -
One user tap on an inbox message, passed to
See moreInboxFeatureApi.trackMessageInteractionEvent(_:interaction:).Declaration
Swift
@objc(SFMCSdkInboxMessageInteraction) public final class InboxMessageInteraction : NSObject -
Classifies the engagement object the user tapped on an inbox message.
Distinct from
InboxActionType, which describes what a tap does (WEB_URL,APP_URL, and so on). This type only says which object was tapped..cta: the message-level call to action. Passid: nil..button: a button on the message.idmust be that button’sInboxButton.id.
Declaration
Swift
@objc(SFMCSdkInboxInteractionType) public enum InboxInteractionType : Int, CaseIterableextension InboxInteractionType: CustomStringConvertible
Inbox Message Details Reference