Added
Android SDK 3.0.19
19 days ago by Viktor Manev
repliesLimit has been available through the existing sdk.comment() APIs since SDK version 3.0.16
commentSession can optionally include a small preview of replies beneath each top-level comment. This is useful for feeds that show a few replies inline.
Configuration
Configure the limit when creating the session:
val commentSession = sdk.createCommentSession(
commentBoardId = commentBoardId,
repliesLimit = 2
)Or update it later:
commentSession.setRepliesLimit(2)
commentSession.reloadComments()Behaviour
repliesLimitis optional. When it is null (the default), existing behaviour is unchanged and inline reply previews are not requested.- Valid values are 1..5. Values outside this range throw
IllegalArgumentException. - The limit applies to top-level comment history loads:
- initial session load
loadNextHistory()reloadComments()
- Comments emitted through
commentListFlowcan include up to the configured number of preview replies inComment.replies. - The limit does not affect
getCommentReplies(), which retrieves the full reply list for a selected comment.
more info : docs.comments
available versions: 3.0.19 (ktor 3, default) and 3.0.19-ktor2

