CommentCatalogEvent
CommentCatalogEvent is a class in the Salesforce Marketing Cloud Unified SDK for Android that captures user comments on catalog objects.
Package: com.salesforce.marketingcloud.sfmcsdk.components.events
Platform: androidJvm
SDK Version: 11.0.0 (SFMC SDK v3.1.0)
An event to capture when a user comments on a catalog object. This event extends CatalogEvent and is used for tracking user engagement when they add comments to catalog items such as products, blog posts, or other trackable objects.
A property that holds the catalog object associated with this event.
The Event category Name. Category contains list of allowed values.
Defines the priority level for the event.
Returns a map of event attributes for this event.
Returns: Map<String, Any> - The Event attributes for this event.
Returns the name for the event. This value must match the Event Name used when creating the event in the Marketing Cloud UI to trigger associated actions.
Returns: String - The event name.
The catalogObject property uses the CatalogObject class, which represents various items that can be tracked.
Constructor:
Parameters:
- type:
String- A type name representing the catalog object - id:
String- A unique id representing the catalog object - attributes:
Map<String, Any>- A map of user-supplied values (optional, defaults to empty map) - relatedCatalogObjects:
Map<String, List<String>>- A map of related catalog objects (optional, defaults to empty map)
Properties:
val type: Stringval id: Stringval attributes: Map<String, Any>val relatedCatalogObjects: Map<String, List<String>>
Other classes that extend CatalogEvent:
ViewCatalogEvent- Captures when a user views a catalog objectViewCatalogDetailEvent- Captures when a user views detailed catalog informationQuickViewCatalogEvent- Captures quick views of catalog itemsShareCatalogEvent- Captures catalog item sharing eventsReviewCatalogEvent- Captures catalog item review eventsFavoriteCatalogEvent- Captures when users mark catalog objects as favorites
As a sealed class hierarchy member, CommentCatalogEvent is part of a controlled type system for engagement events. The class inherits its core functionality from CatalogEvent and EngagementEvent, providing a standardized way to track user comment interactions with catalog objects in the Salesforce Marketing Cloud ecosystem.
The event name returned by name() must match the Event Name configured in the Marketing Cloud UI to properly trigger associated actions and workflows.