public final class ReachabilityManager extends Manager
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(Consumer<ReachabilityEvent> reachabilityListener)
Adds a reachability listener, which allows to listen for reachability updates.
|
List<Address> |
getReachabilityAddresses() |
void |
removeReachabilityListener(Consumer<ReachabilityEvent> reachabilityListener)
Removes a previously added reachability listener.
|
AsyncResult<List<Address>> |
requestReachabilityAddresses(rocks.xmpp.addr.Jid contact)
Requests the reachability addresses of a contact.
|
isEnabled, setEnabledpublic void addReachabilityListener(Consumer<ReachabilityEvent> reachabilityListener)
reachabilityListener - The listener.removeReachabilityListener(Consumer)public void removeReachabilityListener(Consumer<ReachabilityEvent> reachabilityListener)
reachabilityListener - The listener.addReachabilityListener(Consumer)public AsyncResult<List<Address>> requestReachabilityAddresses(rocks.xmpp.addr.Jid contact)
contact - The contact.Copyright © 2014–2016 XMPP.rocks. All rights reserved.