Copied to your clipboard
public func dismiss(suppressAutoTrack: Bool? = false)
Parameters
- suppressAutoTrack: If set to
true
, the decisioning.propositionDismiss
Edge Event will not be sent regardless of the autoTrack
setting.
Swift
Copied to your clipboard
public 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 clipboard
public 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 clipboard
void dismiss()
Java
Copied to your clipboard
void 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 clipboard
void 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 clipboard
void 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 clipboard
boolean getAutoTrack()
Java
Copied to your clipboard
void evaluateJavascript(final String content)
Parameters
- content: A string containing the JavaScript code to be executed