Edit in GitHubLog an issue

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

Java

Copied to your clipboard
public 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.
*/
@Deprecated
public 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 @Override
public 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();
}
}
}

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:

CaseString 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
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.