Swift
Syntax
Copied to your clipboardfunc generateInteractionXdm(_ interaction: String? = nil, withEdgeEventType eventType: MessagingEdgeEventType, forTokens tokens: [String]? = nil) -> [String: Any]?
- interaction is a custom string value describing the interaction.
- eventType is an enum specifying event type for the interaction.
- tokens is an array containing the decision item tokens for recording interaction.
Swift
Syntax
Copied to your clipboardfunc track(_ interaction: String? = nil, withEdgeEventType eventType: MessagingEdgeEventType, forTokens tokens: [String]? = nil)
- interaction is a custom string value describing the interaction.
- eventType is an enum specifying event type for the interaction.
- tokens is an array containing the decision item tokens for recording interaction.
Java
Syntax
Copied to your clipboardpublic ContentCardSchemaData getContentCardSchemaData()
Java
Syntax
Copied to your clipboardpublic InAppSchemaData getInAppSchemaData()
Java
Syntax
Copied to your clipboardpublic String getItemId()
Java
Syntax
Copied to your clipboardpublic Map<String, Object> getItemData()
Java
Syntax
Copied to your clipboardpublic SchemaType getSchema()
Java
Syntax
Copied to your clipboardpublic String getHtmlContent()
Java
Syntax
Copied to your clipboardpublic Map<String, Object> getJsonContentMap()
Java
Syntax
Copied to your clipboardpublic List<Map<String, Object>> getJsonContentArrayList()
Java
Syntax
Copied to your clipboardpublic Map<String, Object> generateInteractionXdm(@NonNull final MessagingEdgeEventType eventType)
- eventType is an enum specifying event type for the interaction.
Java
Syntax
Copied to your clipboardpublic Map<String, Object> generateInteractionXdm(final String interaction, @NonNull final MessagingEdgeEventType eventType, final List<String> tokens)
- interaction is a custom string value describing the interaction.
- eventType is an enum specifying event type for the interaction.
- tokens is a list containing the decision item tokens for recording interaction.
Java
Syntax
Copied to your clipboardpublic void track(@NonNull final MessagingEdgeEventType eventType)
- eventType is an enum specifying event type for the interaction.
Java
Syntax
Copied to your clipboardpublic void track(final String interaction, @NonNull final MessagingEdgeEventType eventType, final List<String> tokens)
- interaction is a custom string value describing the interaction.
- eventType is an enum specifying event type for the interaction.
- tokens is a list containing the decision item tokens for recording interaction.