public final class InboundRealTimeMessage extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addRealTimeTextChangeListener(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
Adds a text change listener, which allows to listen for text changes.
|
rocks.xmpp.addr.Jid |
getFrom()
Gets the sender of the real-time message.
|
String |
getId() |
int |
getSequence()
Gets the sequence number of this real-time message.
|
String |
getText()
Gets the current text.
|
boolean |
isActive()
Indicates whether this real-time message is active.
|
boolean |
isComplete()
Indicates whether this real-time message is complete.
|
void |
removeRealTimeTextChangeListener(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
Removes a previously added text change listener.
|
String |
toString() |
public final String getText()
public final rocks.xmpp.addr.Jid getFrom()
public final void addRealTimeTextChangeListener(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
realTimeTextListener - The listener.public final void removeRealTimeTextChangeListener(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
realTimeTextListener - The listener.public final boolean isComplete()
public final boolean isActive()
public final int getSequence()
public final String getId()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.