Class MessageAction

  • All Implemented Interfaces:
    Action

    public final class MessageAction
    extends java.lang.Object
    implements Action
    When this action is tapped, the string in the text field is sent as a message from the user.
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageAction​(java.lang.String label, java.lang.String text)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getLabel()
      Label for the action.
      java.lang.String getText()
      Text sent when the action is performed.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MessageAction

        public MessageAction​(java.lang.String label,
                             java.lang.String text)
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Label for the action. Max 20 characters.
        Specified by:
        getLabel in interface Action
      • getText

        public java.lang.String getText()
        Text sent when the action is performed.

        Max: 300 characters

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object