Retrieve the most recent comment for any reference with real-time updates and live object support
getLatestComment
method to fetch the most recent comment for any reference within your application. This feature enhances user experience by keeping users informed about the latest interactions and fostering a more dynamic, interactive environment with real-time updates.
getLatestComment
method returns a Live Object that you can observe for real-time updates when Realtime Events are subscribed, ensuring your app stays current with the latest community interactions.Parameter | Type | Required | Description |
---|---|---|---|
referenceId | String | Yes | ID of the reference (post, story, etc.) |
referenceType | Enum | Yes | Type of reference (e.g., .post , .story ) |
includeReplies | Boolean | No | Whether to include reply comments (default: false) |