public class VersionManager extends Manager
The VersionManager takes care of handling incoming version request IQs, according to XEP-0092 (Software Version). You can configure the version reply for a given connection by running the following code:
Version MY_VERSION = new Version("My Little XMPP Application", "v1.23", "OS/2 32-bit"); VersionManager.getInstanceFor(mConnection).setVersion(MY_VERSION);
Modifier and Type | Method and Description |
---|---|
static VersionManager |
getInstanceFor(XMPPConnection connection) |
void |
setVersion(Version v) |
connection, schedule
public static VersionManager getInstanceFor(XMPPConnection connection)
public void setVersion(Version v)