public final class ReachabilityManager extends ExtensionManager
By default this manager is not enabled. If you support reachability addresses you have to enable it.
| Modifier and Type | Method and Description |
|---|---|
void |
addReachabilityListener(ReachabilityListener reachabilityListener)
Adds a reachability listener, which allows to listen for reachability updates.
|
List<Address> |
getReachabilityAddresses() |
void |
removeReachabilityListener(ReachabilityListener reachabilityListener)
Removes a previously added reachability listener.
|
List<Address> |
requestReachabilityAddresses(Jid contact)
Requests the reachability addresses of a contact.
|
isEnabled, setEnabledpublic void addReachabilityListener(ReachabilityListener reachabilityListener)
reachabilityListener - The listener.removeReachabilityListener(ReachabilityListener)public void removeReachabilityListener(ReachabilityListener reachabilityListener)
reachabilityListener - The listener.addReachabilityListener(ReachabilityListener)public List<Address> requestReachabilityAddresses(Jid contact) throws XmppException
contact - The contact.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionCopyright © 2014–2015 XMPP.rocks. All rights reserved.