LiveLikeCommentSession

An interface representing a session for managing and interacting with comments. Provides functions and properties for loading, sorting, and interacting with comments in a session.

Properties

Link copied to clipboard
abstract val commentCountFlow: StateFlow<Int>
Link copied to clipboard
abstract val commentListFlow: StateFlow<List<Comment>>
Link copied to clipboard
abstract val commentsBlockedListFlow: StateFlow<List<BlockedInfo>>
Link copied to clipboard
abstract val commentsLoadedFlow: StateFlow<Boolean>
Link copied to clipboard
abstract val commentSortByReactionIDFlow: StateFlow<String?>
Link copied to clipboard
abstract val commentSortFlow: StateFlow<CommentSortingOptions>
Link copied to clipboard
abstract val commentsReplyCountFlow: StateFlow<Int>
Link copied to clipboard
abstract val commentsReportsListFlow: StateFlow<List<CommentReport>>
Link copied to clipboard
Link copied to clipboard
abstract val topCommentFlow: StateFlow<Comment?>

Functions

Link copied to clipboard
abstract fun blockUser(profileId: String, callback: LiveLikeCallback<BlockedInfo>)
Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun closeAllCommentReplies()
Link copied to clipboard
Link copied to clipboard
abstract fun deleteComment(commentId: String, callback: LiveLikeCallback<LiveLikeEmptyResponse>)
Link copied to clipboard
abstract fun getBlockedProfileList()
Link copied to clipboard
Link copied to clipboard
abstract fun getCommentReplies(getCommentRepliesRequestOptions: GetCommentRepliesRequestOptions, liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<Comment>>)
Link copied to clipboard
abstract fun getCommentReplyCount(commentId: String, callback: LiveLikeCallback<Int>)
Link copied to clipboard
abstract fun getCommentReports()
Link copied to clipboard
abstract fun isReplyAllowed(): Boolean
Link copied to clipboard
abstract fun isTopComment(comment: Comment): Boolean
Link copied to clipboard
abstract fun loadHistory(pagination: LiveLikePagination)
Link copied to clipboard
abstract fun loadNextHistory()
Link copied to clipboard
abstract fun loadPreviousHistory()
Link copied to clipboard
abstract fun openCommentReplies(comment: Comment?)
Link copied to clipboard
abstract fun reloadComments()
Link copied to clipboard
abstract fun reportComment(commentId: String, callback: LiveLikeCallback<CommentReport>)
Link copied to clipboard
abstract fun sendComment(text: String, profileImageUrl: String?, mentions: List<MentionRequestOption>? = null, customData: String? = null, attributes: List<CommentAttribute>? = null, liveLikeCallback: LiveLikeCallback<Comment>)
Link copied to clipboard
abstract fun setCommentSortingOption(sortingOption: CommentSortingOptions)
Link copied to clipboard
abstract fun setCommentSortingReactionIDOption(reactionId: String)
Link copied to clipboard
abstract fun setRepliesLimit(repliesLimit: Int?)

Configures the number of replies included inline for each top-level comment on future history loads. Call reloadComments after changing this value to refresh the current list. A null value omits inline reply previews; values greater than MAX_REPLIES_LIMIT are rejected by the comments API client.

Link copied to clipboard
abstract fun unBlockUser(profileId: String, callback: LiveLikeCallback<LiveLikeEmptyResponse>)
Link copied to clipboard
abstract fun unReportComment(commentReportId: String, callback: LiveLikeCallback<LiveLikeEmptyResponse>)