InboxMessageInteraction

@objc(SFMCSdkInboxMessageInteraction)
public final class InboxMessageInteraction : NSObject

One user tap on an inbox message, passed to InboxFeatureApi.trackMessageInteractionEvent(_:interaction:).

  • Which object was tapped. See InboxInteractionType.

    Declaration

    Swift

    @objc
    public let type: InboxInteractionType
  • id

    Button id for .button. Pass nil for .cta. A caller-supplied id on .cta is ignored.

    Declaration

    Swift

    @objc
    public let id: String?
  • Declaration

    Swift

    @objc
    public init(type: InboxInteractionType, id: String?)

    Parameters

    type

    .cta for the message action, .button for a message button.

    id

    The button id for .button, or nil for .cta.