Returns the scroll offset for the given index, or undefined if not available.
The index to get the offset for.
Returns the size of the item at the given index, or undefined if not available.
The index to get the size for.
Returns true if the given index is currently visible in the viewport.
The index to check.
Scrolls by the specified offset.
The amount to scroll by.
Scrolls to the bottom of the messages list.
Optional
opts: ScrollToIndexOptsOptional scroll options.
Scrolls to the specified index.
The index to scroll to.
Optional
opts: ScrollToIndexOptsOptional scroll options.
Scrolls to the specified offset.
The scroll offset to scroll to.
Scrolls to the top of the messages list.
Optional
opts: ScrollToIndexOptsOptional scroll options.
Whether the viewport is currently at the bottom of the message list. Use ChatViewerProps#onAtBottom to be notified when the viewport reaches the bottom.
Whether the viewport is currently at the top of the message list. Use ChatViewerProps#onAtTop to be notified when the viewport reaches the top.
Map of message IDs to their corresponding indexes in the list.
Map of indexes to their corresponding MessageId in the list.
The MessageId of the newest message currently visible in the viewport, or undefined if not available.
The index of the newest message currently visible in the viewport.
The MessageId of the newest message that is present in the viewport, or undefined if not available.
The index of the newest message that is present in the viewport, or undefined if not available.
The MessageId of the oldest message currently visible in the viewport, or undefined if not available.
The index of the oldest message currently visible in the viewport.
The MessageId of the oldest message that has been seen (was at least once within the viewport), or undefined if not available.
The index of the oldest message that has been seen (was at least once within the viewport), or undefined if not available.
Current scroll offset, or undefined if not available.
Total scrollable size, or undefined if not available.
Size of the viewport, or undefined if not available.
Reference to the underlying Virtua's VListHandle
, or null if not available.
Returns true if the given message ID has ever been seen in the viewport.
Returns true if the given index has ever been seen in the viewport.
The index to check.
Returns the scroll offset for the given message ID, or undefined if not available.