Interface MessageButton

All Known Subinterfaces:
CopyMessageButton

public interface MessageButton
Button will show after the message is clicked
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    click(User clicker, Message message)
    Will be invoked after the user click the button
    display(User clicker, Message message)
    The text will show
    hover(User clicker, Message message)
    The tips will be shown if the user move their cursor on the message button
  • Method Details

    • display

      String display(User clicker, Message message)
      The text will show
      Parameters:
      clicker - the user clicked message
      message - the message was clicked
      Returns:
      the text, if null means the button won't show for the user
    • click

      void click(User clicker, Message message)
      Will be invoked after the user click the button
      Parameters:
      clicker - user
      message - the owner of the button
    • hover

      String hover(User clicker, Message message)
      The tips will be shown if the user move their cursor on the message button
      Parameters:
      clicker - user
      message - the owner of the button
      Returns:
      the text will be shown