Enum - MessagingEdgeEventType
Provides mapping to XDM EventType strings needed for Experience Event requests.
This enum is used in conjunction with the track(_:withEdgeEventType:)
method of a Message
object.
Definition
This enum has been changed in v3.0.0 of Adobe Journey Optimizer extension.
Please use newly added DISMISS
, INTERACT
, TRIGGER
, DISPLAY
values in place of IN_APP_DISMISS
, IN_APP_INTERACT
, IN_APP_TRIGGER
, IN_APP_DISPLAY
from earlier versions.
Java
Copied to your clipboardpublic enum MessagingEdgeEventType {PUSH_APPLICATION_OPENED(4),PUSH_CUSTOM_ACTION(5),DISMISS(6),INTERACT(7),TRIGGER(8),DISPLAY(9),DISQUALIFY(10),SUPPRESS_DISPLAY(11);MessagingEdgeEventType(final int value) {this.value = value;}/*** @deprecated This method will be removed in future versions.*/@Deprecatedpublic int getValue() {return value;}public String getPropositionEventType() {switch (this) {case DISMISS:return PROPOSITION_EVENT_TYPE_DISMISS;case INTERACT:return PROPOSITION_EVENT_TYPE_INTERACT;case TRIGGER:return PROPOSITION_EVENT_TYPE_TRIGGER;case DISPLAY:return PROPOSITION_EVENT_TYPE_DISPLAY;case DISQUALIFY:return PROPOSITION_EVENT_TYPE_DISQUALIFY;case SUPPRESS_DISPLAY:return PROPOSITION_EVENT_TYPE_SUPPRESS_DISPLAY;default:return "";}}@NonNull @Overridepublic String toString() {switch (this) {case DISMISS:return PROPOSITION_EVENT_TYPE_DISMISS_STRING;case INTERACT:return PROPOSITION_EVENT_TYPE_INTERACT_STRING;case TRIGGER:return PROPOSITION_EVENT_TYPE_TRIGGER_STRING;case DISPLAY:return PROPOSITION_EVENT_TYPE_DISPLAY_STRING;case DISQUALIFY:return PROPOSITION_EVENT_TYPE_DISQUALIFY_STRING;case SUPPRESS_DISPLAY:return PROPOSITION_EVENT_TYPE_SUPPRESS_DISPLAY_STRING;case PUSH_APPLICATION_OPENED:return PUSH_NOTIFICATION_EVENT_TYPE_STRING_OPENED;case PUSH_CUSTOM_ACTION:return PUSH_NOTIFICATION_EVENT_TYPE_STRING_CUSTOM_ACTION;default:return super.toString();}}}
This enum has been changed in v5.0.0 of Adobe Journey Optimizer extension.
Please use newly added values dismiss
, interact
, trigger
, display
in place of inappDismiss
, inappInteract
, inappTrigger
, inappDisplay
from earlier versions.
Swift
Copied to your clipboard@objc(AEPMessagingEdgeEventType)public enum MessagingEdgeEventType: Int {case pushApplicationOpened = 4case pushCustomAction = 5case dismiss = 6case interact = 7case trigger = 8case display = 9case disqualify = 10case suppressDisplay = 11public func toString() -> String {switch self {case .dismiss:return MessagingConstants.XDM.Inbound.EventType.DISMISScase .trigger:return MessagingConstants.XDM.Inbound.EventType.TRIGGERcase .interact:return MessagingConstants.XDM.Inbound.EventType.INTERACTcase .display:return MessagingConstants.XDM.Inbound.EventType.DISPLAYcase .disqualify:return MessagingConstants.XDM.Inbound.EventType.DISQUALIFYcase .suppressDisplay:return MessagingConstants.XDM.Inbound.EventType.SUPPRESSED_DISPLAYcase .pushCustomAction:return MessagingConstants.XDM.Push.EventType.CUSTOM_ACTIONcase .pushApplicationOpened:return MessagingConstants.XDM.Push.EventType.APPLICATION_OPENED}}}
This enum has been changed in v3.0.0 of Adobe Journey Optimizer extension.
Please use newly added DISMISS
, INTERACT
, TRIGGER
, DISPLAY
values in place of IN_APP_DISMISS
, IN_APP_INTERACT
, IN_APP_TRIGGER
, IN_APP_DISPLAY
from earlier versions.
Java
Copied to your clipboardpublic enum MessagingEdgeEventType {PUSH_APPLICATION_OPENED(4),PUSH_CUSTOM_ACTION(5),DISMISS(6),INTERACT(7),TRIGGER(8),DISPLAY(9),DISQUALIFY(10),SUPPRESS_DISPLAY(11);MessagingEdgeEventType(final int value) {this.value = value;}/*** @deprecated This method will be removed in future versions.*/@Deprecatedpublic int getValue() {return value;}public String getPropositionEventType() {switch (this) {case DISMISS:return PROPOSITION_EVENT_TYPE_DISMISS;case INTERACT:return PROPOSITION_EVENT_TYPE_INTERACT;case TRIGGER:return PROPOSITION_EVENT_TYPE_TRIGGER;case DISPLAY:return PROPOSITION_EVENT_TYPE_DISPLAY;case DISQUALIFY:return PROPOSITION_EVENT_TYPE_DISQUALIFY;case SUPPRESS_DISPLAY:return PROPOSITION_EVENT_TYPE_SUPPRESS_DISPLAY;default:return "";}}@NonNull @Overridepublic String toString() {switch (this) {case DISMISS:return PROPOSITION_EVENT_TYPE_DISMISS_STRING;case INTERACT:return PROPOSITION_EVENT_TYPE_INTERACT_STRING;case TRIGGER:return PROPOSITION_EVENT_TYPE_TRIGGER_STRING;case DISPLAY:return PROPOSITION_EVENT_TYPE_DISPLAY_STRING;case DISQUALIFY:return PROPOSITION_EVENT_TYPE_DISQUALIFY_STRING;case SUPPRESS_DISPLAY:return PROPOSITION_EVENT_TYPE_SUPPRESS_DISPLAY_STRING;case PUSH_APPLICATION_OPENED:return PUSH_NOTIFICATION_EVENT_TYPE_STRING_OPENED;case PUSH_CUSTOM_ACTION:return PUSH_NOTIFICATION_EVENT_TYPE_STRING_CUSTOM_ACTION;default:return super.toString();}}}
This enum has been changed in v5.0.0 of Adobe Journey Optimizer extension.
Please use newly added values dismiss
, interact
, trigger
, display
in place of inappDismiss
, inappInteract
, inappTrigger
, inappDisplay
from earlier versions.
Swift
Copied to your clipboard@objc(AEPMessagingEdgeEventType)public enum MessagingEdgeEventType: Int {case pushApplicationOpened = 4case pushCustomAction = 5case dismiss = 6case interact = 7case trigger = 8case display = 9case disqualify = 10case suppressDisplay = 11public func toString() -> String {switch self {case .dismiss:return MessagingConstants.XDM.Inbound.EventType.DISMISScase .trigger:return MessagingConstants.XDM.Inbound.EventType.TRIGGERcase .interact:return MessagingConstants.XDM.Inbound.EventType.INTERACTcase .display:return MessagingConstants.XDM.Inbound.EventType.DISPLAYcase .disqualify:return MessagingConstants.XDM.Inbound.EventType.DISQUALIFYcase .suppressDisplay:return MessagingConstants.XDM.Inbound.EventType.SUPPRESSED_DISPLAYcase .pushCustomAction:return MessagingConstants.XDM.Push.EventType.CUSTOM_ACTIONcase .pushApplicationOpened:return MessagingConstants.XDM.Push.EventType.APPLICATION_OPENED}}}
String values
Below is the table of values returned by calling the toString
method for each case, which are used as the XDM eventType
in outgoing experience events:
Case | String value |
---|---|
DISMISS | decisioning.propositionDismiss |
INTERACT | decisioning.propositionInteract |
TRIGGER | decisioning.propositionTrigger |
DISPLAY | decisioning.propositionDisplay |
DISQUALIFY | decisioning.propositionDisqualify |
SUPPRESS_DISPLAY | decisioning.propositionSuppressDisplay |
PUSH_APPLICATION_OPENED | pushTracking.applicationOpened |
PUSH_CUSTOM_ACTION | pushTracking.customAction |
Case | String value |
---|---|
dismiss | decisioning.propositionDismiss |
interact | decisioning.propositionInteract |
trigger | decisioning.propositionTrigger |
display | decisioning.propositionDisplay |
disqualify | decisioning.propositionDisqualify |
suppressDisplay | decisioning.propositionSuppressDisplay |
pushApplicationOpened | pushTracking.applicationOpened |
pushCustomAction | pushTracking.customAction |
Case | String value |
---|---|
DISMISS | decisioning.propositionDismiss |
INTERACT | decisioning.propositionInteract |
TRIGGER | decisioning.propositionTrigger |
DISPLAY | decisioning.propositionDisplay |
DISQUALIFY | decisioning.propositionDisqualify |
SUPPRESS_DISPLAY | decisioning.propositionSuppressDisplay |
PUSH_APPLICATION_OPENED | pushTracking.applicationOpened |
PUSH_CUSTOM_ACTION | pushTracking.customAction |
Case | String value |
---|---|
dismiss | decisioning.propositionDismiss |
interact | decisioning.propositionInteract |
trigger | decisioning.propositionTrigger |
display | decisioning.propositionDisplay |
disqualify | decisioning.propositionDisqualify |
suppressDisplay | decisioning.propositionSuppressDisplay |
pushApplicationOpened | pushTracking.applicationOpened |
pushCustomAction | pushTracking.customAction |