Class ClipboardHandlerImpl

  • All Implemented Interfaces:
    io.getstream.chat.android.ui.common.helper.ClipboardHandler

    
    public final class ClipboardHandlerImpl
     implements ClipboardHandler
                        

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit copyMessage(Message message) Allows users to copy the message text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClipboardHandlerImpl

        ClipboardHandlerImpl(ClipboardManager clipboardManager, Boolean autoTranslationEnabled, Function0<User> getCurrentUser)
        Parameters:
        clipboardManager - System service that allows for clipboard operations, such as putting new data on the clipboard.
    • Method Detail

      • copyMessage

         Unit copyMessage(Message message)

        Allows users to copy the message text.

        Parameters:
        message - Message to copy the text from.