Interface MessageLongClickItem

  • All Implemented Interfaces:

    
    public interface MessageLongClickItem
    
                        

    Contract interface for message long-press menu items. The order in the List determines the menu display order.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getTitle(Context context) Menu item title.
      abstract int getIconAttrResId() Menu item icon attr resId; pass 0 to hide the icon.
      abstract boolean isEnabled(UiMessage message) Whether this menu item is visible for the current message; false filters it out.
      abstract boolean onAction(Context context, UiMessage message) Action to execute when the user taps this menu item; return true if consumed.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getTitle

         abstract String getTitle(Context context)

        Menu item title.

      • getIconAttrResId

         abstract int getIconAttrResId()

        Menu item icon attr resId; pass 0 to hide the icon.

      • isEnabled

         abstract boolean isEnabled(UiMessage message)

        Whether this menu item is visible for the current message; false filters it out.

      • onAction

         abstract boolean onAction(Context context, UiMessage message)

        Action to execute when the user taps this menu item; return true if consumed.