Widget Documentation: LMFeedPostDetailListView
Widget: LMFeedPostDetailListView
The LMFeedPostDetailListView
is a customizable list view designed for displaying detailed post data, supporting features like video autoplay, pagination, and dynamic item management.
Method | Description |
---|---|
initiateVideoAutoPlayer() | Initiates the video auto-player functionality. |
refreshVideoAutoPlayer() | Refreshes the video auto-player functionality. |
destroyVideoAutoPlayer() | Destroys the video auto-player functionality. |
initAdapterAndSetListeners() | Initializes the adapter and sets listeners for the list view. |
setAdapter() | Sets the adapter for the list view. |
setPaginationScrollListener(scrollListener: LMFeedEndlessRecyclerViewScrollListener) | Sets the pagination scroll listener. |
resetScrollListenerData() | Resets the scroll listener's data. |
addItem(item: LMFeedBaseViewType) | Adds an item to the list. |
addItem(position: Int, item: LMFeedBaseViewType) | Adds an item at a specified position in the list. |
addItems(items: List) | Adds multiple items to the list. |
updateItem(position: Int, updatedItem: LMFeedBaseViewType) | Updates an item at a specific position in the list. |
updateItemWithoutNotifying(position: Int, postItem: LMFeedPostViewData) | Updates an item at a specific position without notifying the adapter. |
replaceItems(items: List) | Replaces all items in the list. |
removeItem(position: Int) | Removes an item at a specific position in the list. |
getItem(position: Int): LMFeedBaseViewType | Retrieves an item at a specific position in the list. |
items(): List | Retrieves all items in the list. |
getIndexAndCommentFromAdapter(commentId: String): [Pair](Int, LMFeedCommentViewData) | Retrieves the index and comment from the adapter based on a comment ID. |
getIndexAndCommentFromAdapterUsingTempId(tempId: String?): [Pair](Int, LMFeedCommentViewData) | Retrieves the index and comment from the adapter based on a temporary ID. |
getIndexAndReplyFromComment() | Retrieves the index and reply from a comment. |
scrollToPositionWithOffset(position: Int, offset: Int) | Scrolls to a specific position with an offset. |