Swift
Copied to your clipboardpublic var id: String
Swift
Copied to your clipboardpublic var autoTrack: Bool = true
Swift
Copied to your clipboardpublic var view: UIView? {fullscreenMessage?.webView}
Swift
Copied to your clipboardpublic func show()
Swift
Copied to your clipboardpublic func dismiss(suppressAutoTrack: Bool? = false)
Parameters
- suppressAutoTrack - if set to
true
, thedecisioning.propositionDismiss
Edge Event will not be sent regardless of theautoTrack
setting.
Swift
Copied to your clipboardpublic func track(_ interaction: String?, withEdgeEventType eventType: MessagingEdgeEventType)
Parameters
- interaction - a custom
String
value to be recorded in the interaction - eventType - the
MessagingEdgeEventType
to be used for the ensuing Edge Event
Swift
Copied to your clipboardpublic func handleJavascriptMessage(_ name: String, withHandler handler: @escaping (Any?) -> Void)
Parameters
- name - the name of the message that should be handled by
handler
- handler - the method or closure to be called with the body of the message created in the Message's JavaScript
Java
Copied to your clipboardvoid dismiss(final boolean suppressAutoTrack)
Parameters
- suppressAutoTrack - if set to
true
, thedecisioning.propositionDismiss
Edge Event will not be sent regardless of theautoTrack
setting.
Java
Copied to your clipboardvoid track(final String interaction, final MessagingEdgeEventType eventType)
Parameters
- interaction - a custom
String
value to be recorded in the interaction - eventType - the
MessagingEdgeEventType
to be used for the ensuing Edge Event
Java
Copied to your clipboardvoid show()
Java
Copied to your clipboardWebView getWebView()
Java
Copied to your clipboardvoid handleJavascriptMessage(final String name, final AdobeCallback<String> callback)
Parameters
- name - the name of the message that should be handled by the
callback
- callback - a callback which will be called with the body of the message created in the Message's JavaScript
Java
Copied to your clipboardvoid setAutoTrack(boolean enabled)
Parameters
- enabled - if true, Experience Edge events will automatically be generated when this
Message
is triggered, displayed, or dismissed.
Java
Copied to your clipboardvoid evaluateJavascript(final String content)
Parameters
- content - a string containing the javascript code to be executed
Java
Copied to your clipboardString getId()
Java
Copied to your clipboardObject getParent()
Java
Copied to your clipboardpublic enum MessagingEdgeEventType {IN_APP_DISMISS(0),IN_APP_INTERACT(1),IN_APP_TRIGGER(2),IN_APP_DISPLAY(3),PUSH_APPLICATION_OPENED(4),PUSH_CUSTOM_ACTION(5);final int value;MessagingEdgeEventType(final int value) {this.value = value;}public int getValue() {return value;}@Overridepublic String toString() {switch (this) {case IN_APP_DISMISS:return MessagingConstants.EventDataKeys.Messaging.IAMDetailsDataKeys.EventType.DISMISS;case IN_APP_INTERACT:return MessagingConstants.EventDataKeys.Messaging.IAMDetailsDataKeys.EventType.INTERACT;case IN_APP_TRIGGER:return MessagingConstants.EventDataKeys.Messaging.IAMDetailsDataKeys.EventType.TRIGGER;case IN_APP_DISPLAY:return MessagingConstants.EventDataKeys.Messaging.IAMDetailsDataKeys.EventType.DISPLAY;case PUSH_APPLICATION_OPENED:return MessagingConstants.EventDataKeys.Messaging.PushNotificationDetailsDataKeys.EventType.OPENED;case PUSH_CUSTOM_ACTION:return MessagingConstants.EventDataKeys.Messaging.PushNotificationDetailsDataKeys.EventType.CUSTOM_ACTION;default:return super.toString();}}
Swift
Copied to your clipboard@objc(AEPMessagingEdgeEventType)public enum MessagingEdgeEventType: Int {case inappDismiss = 0case inappInteract = 1case inappTrigger = 2case inappDisplay = 3case pushApplicationOpened = 4case pushCustomAction = 5public func toString() -> String {switch self {case .inappDismiss:return MessagingConstants.XDM.IAM.EventType.DISMISScase .inappTrigger:return MessagingConstants.XDM.IAM.EventType.TRIGGERcase .inappInteract:return MessagingConstants.XDM.IAM.EventType.INTERACTcase .inappDisplay:return MessagingConstants.XDM.IAM.EventType.DISPLAYcase .pushCustomAction:return MessagingConstants.XDM.Push.EventType.CUSTOM_ACTIONcase .pushApplicationOpened:return MessagingConstants.XDM.Push.EventType.APPLICATION_OPENED}}}
Case | String value |
---|---|
IN_APP_DISMISS | decisioning.propositionDismiss |
IN_APP_INTERACT | decisioning.propositionInteract |
IN_APP_TRIGGER | decisioning.propositionTrigger |
IN_APP_DISPLAY | decisioning.propositionDisplay |
PUSH_APPLICATION_OPENED | pushTracking.applicationOpened |
PUSH_CUSTOM_ACTION | pushTracking.customAction |
Case | String value |
---|---|
inappDismiss | decisioning.propositionDismiss |
inappInteract | decisioning.propositionInteract |
inappTrigger | decisioning.propositionTrigger |
inappDisplay | decisioning.propositionDisplay |
pushApplicationOpened | pushTracking.applicationOpened |
pushCustomAction | pushTracking.customAction |