Package-level declarations

Types

Link copied to clipboard
fun interface ClipboardHandler

Abstraction over the ClipboardHandlerImpl that allows users to copy messages.

Link copied to clipboard
class ClipboardHandlerImpl(clipboardManager: ClipboardManager, autoTranslationEnabled: Boolean = false, getCurrentUser: () -> User? = { null }) : ClipboardHandler

A simple implementation that relies on the clipboardManager to copy messages.

Functions

Link copied to clipboard
fun LoadMoreHandler(lazyListState: LazyListState, threshold: () -> Int = { DefaultLoadMoreThreshold }, loadMore: () -> Unit)

Handler to notify that more items should be loaded when the user scrolls to the end of the list.

fun LoadMoreHandler(listState: LazyListState, loadMoreThreshold: Int = DefaultLoadMoreThreshold, loadMore: () -> Unit)

Handler to notify more items should be loaded when the user scrolls to the end of the list.

fun LoadMoreHandler(lazyGridState: LazyGridState, threshold: () -> Int = { DefaultLoadMoreThreshold }, loadMore: () -> Unit)

Handler to notify that more items should be loaded when the user scrolls to the end of the grid.

fun LoadMoreHandler(pagerState: PagerState, pageCount: () -> Int, threshold: () -> Int = { DefaultLoadMoreThreshold }, loadMore: () -> Unit)

Handler to notify that more items should be loaded when the user scrolls to the end of the pager.