ClipboardHandlerImpl

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

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

Parameters

clipboardManager

System service that allows for clipboard operations, such as putting new data on the clipboard.

Constructors

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

Functions

Link copied to clipboard
open override fun copyMessage(message: Message)

Allows users to copy the message text.