public class ChatStateManager extends Manager
getInstance(org.jivesoftware.smack.XMPPConnection)
needs to be called in order for the listeners to be registered appropriately with the connection.
If this does not occur you will not receive the update notifications.ChatState
,
ChatStateExtension
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ChatStateManager |
getInstance(XMPPConnection connection)
Returns the ChatStateManager related to the XMPPConnection and it will create one if it does
not yet exist.
|
int |
hashCode() |
void |
setCurrentState(ChatState newState,
Chat chat)
Sets the current state of the provided chat.
|
connection, schedule
public static final String NAMESPACE
public static ChatStateManager getInstance(XMPPConnection connection)
connection
- the connection to return the ChatStateManagerpublic void setCurrentState(ChatState newState, Chat chat) throws SmackException.NotConnectedException
PacketExtension
, if
and only if the new chat state is different than the last state.newState
- the new state of the chatchat
- the chat.SmackException.NotConnectedException