public final class GeoLocationManager
extends org.jivesoftware.smack.Manager
| Constructor and Description |
|---|
GeoLocationManager(org.jivesoftware.smack.XMPPConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
static GeoLocationManager |
getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
Retrieves a
GeoLocationManager for the specified XMPPConnection, creating one if it doesn't
already exist. |
static boolean |
isGeoLocationMessage(org.jivesoftware.smack.packet.Message message)
Returns true if the message contains a GeoLocation extension.
|
void |
sendGeoLocationToJid(GeoLocation geoLocation,
org.jxmpp.jid.Jid jid) |
public GeoLocationManager(org.jivesoftware.smack.XMPPConnection connection)
public static GeoLocationManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
GeoLocationManager for the specified XMPPConnection, creating one if it doesn't
already exist.connection - The connection the manager is attached to.public void sendGeoLocationToJid(GeoLocation geoLocation, org.jxmpp.jid.Jid jid) throws java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionpublic static boolean isGeoLocationMessage(org.jivesoftware.smack.packet.Message message)
message - the message to check if contains a GeoLocation extension or not