Class InboundRealTimeMessage


  • public final class InboundRealTimeMessage
    extends Object
    An inbound real-time message.
    • Method Detail

      • getText

        public final String getText()
        Gets the current text.
        Returns:
        The text.
      • getFrom

        public final Jid getFrom()
        Gets the sender of the real-time message.
        Returns:
        The sender.
      • addRealTimeTextChangeListener

        public final void addRealTimeTextChangeListener​(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
        Adds a text change listener, which allows to listen for text changes.
        Parameters:
        realTimeTextListener - The listener.
      • removeRealTimeTextChangeListener

        public final void removeRealTimeTextChangeListener​(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
        Removes a previously added text change listener.
        Parameters:
        realTimeTextListener - The listener.
      • isComplete

        public final boolean isComplete()
        Indicates whether this real-time message is complete.
        Returns:
        True, if the message is complete.
      • getSequence

        public final int getSequence()
        Gets the sequence number of this real-time message.
        Returns:
        The sequence number.
      • getId

        public final String getId()