The Amity SDK provides a functionality that allows you to work with social features in your application, including the ability to retrieve a comment. In this section, we'll explore how to use the Amity SDK to retrieve a single comment from your application. By using a specific function provided by the SDK, you can retrieve a comment based on its ID, which provides a convenient way to access specific comment data. The retrieved result is returned as a live object of a comment. For more information on live objects, please refer to Live Objects/Collections.
Supported ✅ (Please wait while we prepare a real example!)
Supported ✅ (Please wait while we prepare a real example!)
To retrieve multiple comments, you can use getCommentByIds
method provided by CommentRepository
. This method accepts a collection of commentId
as a parameter and returns a Live Collection ofAmityComment
.
The functionality isn't currently supported by this SDK.
Supported ✅ (Please wait while we prepare a real example!)
Supported ✅ (Please wait while we prepare a real example!)
Supported ✅ (Please wait while we prepare a real example!)